Class DeferredResponseRenderer
- java.lang.Object
-
- org.apache.tapestry5.internal.services.DeferredResponseRenderer
-
- All Implemented Interfaces:
ComponentRequestFilter
public class DeferredResponseRenderer extends java.lang.Object implements ComponentRequestFilter
After processing the component event request (including Ajax requests), or the page render request, checks for theTapestryConstants.RESPONSE_RENDERER
request attribute, and invokes it to render the deferred response.- Since:
- 5.4
-
-
Constructor Summary
Constructors Constructor Description DeferredResponseRenderer(Request request, OperationTracker tracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleComponentEvent(ComponentEventRequestParameters parameters, ComponentRequestHandler handler)
Handler for a component action request which will trigger an event on a component and use the return value to send a response to the client (typically, a redirect to a page render URL).void
handlePageRender(PageRenderRequestParameters parameters, ComponentRequestHandler handler)
Invoked to activate and render a page.
-
-
-
Constructor Detail
-
DeferredResponseRenderer
public DeferredResponseRenderer(Request request, OperationTracker tracker)
-
-
Method Detail
-
handleComponentEvent
public void handleComponentEvent(ComponentEventRequestParameters parameters, ComponentRequestHandler handler) throws java.io.IOException
Description copied from interface:ComponentRequestFilter
Handler for a component action request which will trigger an event on a component and use the return value to send a response to the client (typically, a redirect to a page render URL).- Specified by:
handleComponentEvent
in interfaceComponentRequestFilter
- Parameters:
parameters
- defining the requsthandler
- next handler in the pipeline- Throws:
java.io.IOException
-
handlePageRender
public void handlePageRender(PageRenderRequestParameters parameters, ComponentRequestHandler handler) throws java.io.IOException
Description copied from interface:ComponentRequestFilter
Invoked to activate and render a page. In certain cases, based on values returned when activating the page, aComponentEventResultProcessor
may be used to send an alternate response (typically, a redirect).- Specified by:
handlePageRender
in interfaceComponentRequestFilter
- Parameters:
parameters
- defines the page name and activation contexthandler
- next handler in the pipeline- Throws:
java.io.IOException
-
-