Class ComponentRequestHandlerTerminator
- java.lang.Object
-
- org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator
-
- All Implemented Interfaces:
ComponentRequestHandler
public class ComponentRequestHandlerTerminator extends java.lang.Object implements ComponentRequestHandler
Terminator for theComponentRequestHandler
pipeline, that feeds out into theComponentEventRequestHandler
andPageRenderRequestHandler
pipelines.- Since:
- 5.1.0.0
-
-
Constructor Summary
Constructors Constructor Description ComponentRequestHandlerTerminator(ComponentEventRequestHandler componentEventRequestHandler, PageRenderRequestHandler pageRenderRequestHandler, InvalidationEventHub invalidationEventHub, ComponentDependencyRegistry componentDependencyRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
ComponentRequestHandlerTerminator
public ComponentRequestHandlerTerminator(@Traditional ComponentEventRequestHandler componentEventRequestHandler, PageRenderRequestHandler pageRenderRequestHandler, @ComponentClasses InvalidationEventHub invalidationEventHub, ComponentDependencyRegistry componentDependencyRegistry)
-
-
Method Detail
-
handleComponentEvent
public void handleComponentEvent(ComponentEventRequestParameters parameters) throws java.io.IOException
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:
java.io.IOException
-
handlePageRender
public void handlePageRender(PageRenderRequestParameters parameters) throws java.io.IOException
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:
java.io.IOException
-
-