org.springframework.extensions.surf.render
Class RenderUtil

java.lang.Object
  extended by org.springframework.extensions.surf.render.RenderUtil

public final class RenderUtil
extends Object

Static utility methods utilized during the rendering process. These are grouped here for convenience by developers who wish to build custom renderer implementations.

Author:
muzquiano, kevinr

Constructor Summary
RenderUtil()
           
 
Method Summary
static String generateComponentId(String scopeId, String regionId, String sourceId)
          Generates the deterministic component id from its key properties
static Object getComponentBindingSourceObject(RequestContext context, Component component)
          Returns the object to which this component is bound This is the same as calling component.getSourceObject()
static RenderContext getContext(javax.servlet.http.HttpServletRequest request)
          Attempts to retrieve the render context instance bound to the given http servlet request
static String getSourceId(RequestContext context, String scopeId)
          Return the "source" ID for the given scope ID for the supplied context.
static void object(RequestContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String objectId, String formatId)
          /** Renders the fully formed URL string for a link to a given content object
static void page(RequestContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pageId, String formatId, String objectId)
          Renders the fully formed URL string for a link to a given page
static void pageType(RequestContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pageTypeId, String formatId, String objectId)
          Renders the fully formed URL string for a link to a given page type
static String renderLinkImport(javax.servlet.http.HttpServletRequest request, String href)
          Renders an HTML stylesheet tag.
static String renderLinkImport(javax.servlet.http.HttpServletRequest request, String href, String id, boolean includeQueryString)
          Renders an HTML stylesheet tag and optionally appends the incoming query string to the URL.
static String renderLinkImport(RequestContext context, String href)
          Renders an HTML stylesheet tag.
static String renderLinkImport(RequestContext context, String href, String id)
          Renders an HTML stylesheet tag.
static String renderScriptImport(javax.servlet.http.HttpServletRequest request, String src)
          Renders an HTML

Copyright © 2009 SpringSource, Inc. All Rights Reserved.