Class ComponentRequestHandlerTerminator
java.lang.Object
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator
- All Implemented Interfaces:
ComponentRequestHandler
Terminator for the
ComponentRequestHandler
pipeline, that feeds out into the
ComponentEventRequestHandler
and PageRenderRequestHandler
pipelines.- Since:
- 5.1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionComponentRequestHandlerTerminator
(ComponentEventRequestHandler componentEventRequestHandler, PageRenderRequestHandler pageRenderRequestHandler, InvalidationEventHub invalidationEventHub, ComponentDependencyRegistry componentDependencyRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleComponentEvent
(ComponentEventRequestParameters parameters) 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) Invoked to activate and render a page.
-
Constructor Details
-
ComponentRequestHandlerTerminator
public ComponentRequestHandlerTerminator(@Traditional ComponentEventRequestHandler componentEventRequestHandler, PageRenderRequestHandler pageRenderRequestHandler, @ComponentClasses InvalidationEventHub invalidationEventHub, ComponentDependencyRegistry componentDependencyRegistry)
-
-
Method Details
-
handleComponentEvent
Description copied from interface:ComponentRequestHandler
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 interfaceComponentRequestHandler
- Parameters:
parameters
- defining the request- Throws:
IOException
-
handlePageRender
Description copied from interface:ComponentRequestHandler
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 interfaceComponentRequestHandler
- Parameters:
parameters
- defines the page name and activation context- Throws:
IOException
-