|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.render.RenderService
public class RenderService
Web Framework Render Service.
Field Summary | |
---|---|
static String |
NEWLINE
|
Constructor Summary | |
---|---|
RenderService()
|
Method Summary | |
---|---|
org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the application context. |
Component |
getComponentBoundToRegion(RenderContext context,
String regionId,
String regionScopeId,
String regionSourceId)
Determines the component which is bound to the given region If there is no component bound, then null is returned. |
Chrome |
getComponentChrome(RenderContext context,
Component component,
String chromeId)
Returns the Chrome instance to utilize while rendering the given component. |
Processor |
getProcessor(Renderable renderable)
Returns a processor for a renderable in the default VIEW render mode |
Processor |
getProcessor(Renderable renderable,
RenderMode renderMode)
Returns a processor for a renderable in the given render mode |
Processor |
getProcessorById(String id)
Returns a processor for the given id (i.e. |
Chrome |
getRegionChrome(RenderContext context,
TemplateInstance template,
String regionId,
String chromeId)
Returns the Chrome instance to utilize while rendering the given region on the given template. |
RenderContextProvider |
getRenderContextProvider()
Returns the render context provider instance |
Renderer |
getRenderer(ModelObject modelObject)
Gets a renderer for the given model object type (i.e. |
Renderer |
getRenderer(RendererType rendererType)
Gets a renderer for the given renderer type (i.e. |
Renderer |
getRenderer(String id)
Gets a renderer for the given id |
WebFrameworkServiceRegistry |
getServiceRegistry()
Gets the service registry. |
WebFrameworkConfigElement |
getWebFrameworkConfiguration()
Gets the web framework configuration. |
void |
mergeRenderContext(RenderContext renderContext,
ModelObject modelObject)
Merges a model object into the given render context. |
void |
processComponent(RenderContext context,
RenderFocus renderFocus,
Component component)
Executes the processor for the given render focus on the given component instance. |
void |
processRenderable(RenderContext context,
RenderFocus renderFocus,
Renderable renderable)
Executes the processor for the given focus on the provided renderable object. |
void |
processTemplate(RenderContext context,
RenderFocus renderFocus,
TemplateInstance template)
Executes the processor for the given render focus on the given template instance. |
RenderContext |
provideRenderContext(RenderContext renderContext)
Provides a new render context instance which inherits properties from the given render context instance |
RenderContext |
provideRenderContext(RenderContext renderContext,
ModelObject modelObject)
Provides a new render context instance which inherits properties from the given render context instance The given model object will be bound to the render context. |
RenderContext |
provideRenderContext(RequestContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Provides a new render context bound to the given model object This will use the VIEW render mode |
RenderContext |
provideRenderContext(RequestContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RenderMode renderMode)
Provides a new render context bound to the given model object |
void |
releaseRenderContext(RenderContext renderContext)
Releases the given render context |
void |
renderComponent(RenderContext parentContext,
RenderFocus renderFocus,
String componentId)
Entry point for the rendering a single identified component with the default chrome. |
void |
renderComponent(RenderContext parentContext,
RenderFocus renderFocus,
String componentId,
String overrideChromeId)
Entry point for the rendering a component with the given chrome. |
void |
renderContent(RenderContext parentContext,
RenderFocus renderFocus)
Entry point for the rendering of the current content item as provided by the request context. |
boolean |
renderErrorHandlerPage(RenderContext parentContext,
String errorHandlerPageId)
Renders a default error handler page A system page can be configured to handle a fault state for the web framework. |
void |
renderJspPage(RenderContext parentContext,
String dispatchPath)
Entry point for the rendering of a JSP page. |
void |
renderModelObject(RenderContext renderContext)
Renders the ALL focus for the given model object |
void |
renderModelObject(RenderContext renderContext,
RenderFocus renderFocus)
Renders the specific focus for the given model object |
void |
renderPage(RenderContext parentContext,
RenderFocus renderFocus)
Entry point for the rendering of the current page as provided by the request context. |
void |
renderRawComponent(RenderContext parentContext,
RenderFocus renderFocus,
Component component)
|
void |
renderRawComponent(RenderContext parentContext,
RenderFocus renderFocus,
String componentId)
|
void |
renderRegion(RenderContext parentContext,
RenderFocus renderFocus,
String templateId,
String regionId,
String regionScopeId,
String overrideChromeId)
Entry point for the rendering a region of a given template |
void |
renderRegionComponents(RenderContext parentContext)
Renders the components of the region described by the render context This method is generally called from the region include tag. |
boolean |
renderSystemPage(RenderContext parentContext,
String systemPageId)
Renders a default system page A system container is a page fragment that is rendered as a container of other elements like components. |
String |
renderTemplateHeaderAsString(RenderContext parentContext)
Generates text to be inserted into template markup head for a given renderer context. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setServiceRegistry(WebFrameworkServiceRegistry webFrameworkServiceRegistry)
Sets the service registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NEWLINE
Constructor Detail |
---|
public RenderService()
Method Detail |
---|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public org.springframework.context.ApplicationContext getApplicationContext()
public void setServiceRegistry(WebFrameworkServiceRegistry webFrameworkServiceRegistry)
webFrameworkServiceRegistry
- the new service registrypublic WebFrameworkServiceRegistry getServiceRegistry()
public WebFrameworkConfigElement getWebFrameworkConfiguration()
public Renderer getRenderer(RendererType rendererType)
rendererType
-
public Renderer getRenderer(ModelObject modelObject)
modelObject
-
public Renderer getRenderer(String id)
id
-
public Processor getProcessorById(String id)
id
-
public Processor getProcessor(Renderable renderable)
renderable
-
public Processor getProcessor(Renderable renderable, RenderMode renderMode)
renderable
- renderMode
-
public RenderContextProvider getRenderContextProvider()
public RenderContext provideRenderContext(RequestContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
context
- request
- response
-
public RenderContext provideRenderContext(RequestContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RenderMode renderMode)
context
- request
- response
- renderMode
-
public RenderContext provideRenderContext(RenderContext renderContext)
renderContext
-
public RenderContext provideRenderContext(RenderContext renderContext, ModelObject modelObject)
renderContext
- modelObject
-
public void mergeRenderContext(RenderContext renderContext, ModelObject modelObject)
renderContext
- modelObject
- public void releaseRenderContext(RenderContext renderContext)
renderContext
- public void renderModelObject(RenderContext renderContext) throws RendererExecutionException
renderContext
-
RendererExecutionException
public void renderModelObject(RenderContext renderContext, RenderFocus renderFocus) throws RendererExecutionException
renderContext
- renderFocus
-
RendererExecutionException
public void processRenderable(RenderContext context, RenderFocus renderFocus, Renderable renderable) throws RendererExecutionException
context
- renderFocus
- renderable
-
RendererExecutionException
public void processComponent(RenderContext context, RenderFocus renderFocus, Component component) throws RendererExecutionException
context
- renderFocus
- component
-
RendererExecutionException
public void processTemplate(RenderContext context, RenderFocus renderFocus, TemplateInstance template) throws RendererExecutionException
context
- renderFocus
- template
-
RendererExecutionException
public void renderJspPage(RenderContext parentContext, String dispatchPath) throws JspRenderException
parentContext
- the render contextdispatchPath
-
JspRenderException
public void renderPage(RenderContext parentContext, RenderFocus renderFocus) throws RendererExecutionException
parentContext
- the render context
RendererExecutionException
public void renderContent(RenderContext parentContext, RenderFocus renderFocus) throws RendererExecutionException
parentContext
- the render context
RendererExecutionException
public void renderRegion(RenderContext parentContext, RenderFocus renderFocus, String templateId, String regionId, String regionScopeId, String overrideChromeId) throws RendererExecutionException
parentContext
- renderFocus
- templateId
- regionId
- regionScopeId
- overrideChromeId
-
RendererExecutionException
public void renderRegionComponents(RenderContext parentContext) throws RendererExecutionException
parentContext
-
RendererExecutionException
public void renderComponent(RenderContext parentContext, RenderFocus renderFocus, String componentId) throws RendererExecutionException
parentContext
- renderFocus
- componentId
-
RendererExecutionException
public void renderComponent(RenderContext parentContext, RenderFocus renderFocus, String componentId, String overrideChromeId) throws RendererExecutionException
parentContext
- renderFocus
- componentId
- overrideChromeId
-
RendererExecutionException
public void renderRawComponent(RenderContext parentContext, RenderFocus renderFocus, String componentId) throws RendererExecutionException
RendererExecutionException
public void renderRawComponent(RenderContext parentContext, RenderFocus renderFocus, Component component) throws RendererExecutionException
RendererExecutionException
public Chrome getRegionChrome(RenderContext context, TemplateInstance template, String regionId, String chromeId)
public Chrome getComponentChrome(RenderContext context, Component component, String chromeId)
public Component getComponentBoundToRegion(RenderContext context, String regionId, String regionScopeId, String regionSourceId)
context
- regionId
- regionScopeId
- regionSourceId
-
public boolean renderErrorHandlerPage(RenderContext parentContext, String errorHandlerPageId) throws RendererExecutionException
parentContext
- errorHandlerPageId
- defaultErrorHandlerPageRenderer
-
RendererExecutionException
public boolean renderSystemPage(RenderContext parentContext, String systemPageId) throws RendererExecutionException
context
- systemPageId
-
RendererExecutionException
public String renderTemplateHeaderAsString(RenderContext parentContext) throws RendererExecutionException, UnsupportedEncodingException
rendererContext
-
RendererExecutionException
UnsupportedEncodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |