@Scope(value="perthread") public class PageRenderQueueImpl extends Object implements PageRenderQueue
Constructor and Description |
---|
PageRenderQueueImpl(LoggerSource loggerSource) |
Modifier and Type | Method and Description |
---|---|
void |
addPartialMarkupRendererFilter(PartialMarkupRendererFilter filter)
Adds an optional filter to the rendering.
|
void |
addPartialRenderer(RenderCommand renderer)
Adds a rendering command to the queue of rendering commands.
|
Page |
getRenderingPage()
Returns the page that is rendering markup content.
|
void |
initializeForCompletePage(Page page)
Initializes the queue for rendering of a complete page.
|
boolean |
isPartialRenderInitialized()
|
void |
render(MarkupWriter writer)
Render to the markup writer, as setup by the
PageRenderQueue.initializeForCompletePage(org.apache.tapestry5.internal.structure.Page) or
PageRenderQueue.addPartialRenderer(org.apache.tapestry5.runtime.RenderCommand) methods. |
void |
renderPartial(MarkupWriter writer,
JSONObject reply)
Performs a partial markup render, as configured via
PageRenderQueue.addPartialRenderer(org.apache.tapestry5.runtime.RenderCommand) . |
void |
setRenderingPage(Page page)
Sets the default page that will render the response.
|
public PageRenderQueueImpl(LoggerSource loggerSource)
public void initializeForCompletePage(Page page)
PageRenderQueue
initializeForCompletePage
in interface PageRenderQueue
public void setRenderingPage(Page page)
PageRenderQueue
setRenderingPage
in interface PageRenderQueue
public boolean isPartialRenderInitialized()
PageRenderQueue
PageRenderQueue.addPartialRenderer(org.apache.tapestry5.runtime.RenderCommand)
or
PageRenderQueue.addPartialMarkupRendererFilter(org.apache.tapestry5.services.PartialMarkupRendererFilter)
has been invoked.isPartialRenderInitialized
in interface PageRenderQueue
public void addPartialRenderer(RenderCommand renderer)
PageRenderQueue
addPartialRenderer
in interface PageRenderQueue
renderer
- responsible for rendering a portion of the final markuppublic Page getRenderingPage()
PageRenderQueue
getRenderingPage
in interface PageRenderQueue
public void render(MarkupWriter writer)
PageRenderQueue
PageRenderQueue.initializeForCompletePage(org.apache.tapestry5.internal.structure.Page)
or
PageRenderQueue.addPartialRenderer(org.apache.tapestry5.runtime.RenderCommand)
methods.render
in interface PageRenderQueue
writer
- to write markup topublic void addPartialMarkupRendererFilter(PartialMarkupRendererFilter filter)
PageRenderQueue
PartialMarkupRenderer
service which are permanent, shared and stateless.
Filters are added to the end of the pipeline (after all permanent contributions).
Filters will be executed in the order in which they are added.addPartialMarkupRendererFilter
in interface PageRenderQueue
filter
- to add to the pipelinepublic void renderPartial(MarkupWriter writer, JSONObject reply)
PageRenderQueue
PageRenderQueue.addPartialRenderer(org.apache.tapestry5.runtime.RenderCommand)
.renderPartial
in interface PageRenderQueue
writer
- to which markup should be writtenreply
- JSONObject which will contain the partial response5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.