Class RequestSettingRequestHandler
java.lang.Object
org.apache.wicket.core.request.handler.RequestSettingRequestHandler
- All Implemented Interfaces:
IRequestHandler
,IRequestHandlerDelegate
A
IRequestHandler
that sets the current Request
before delegating the responding
to a wrapped request handler. This is useful when the request received from the browser is not the same
request used to respond, like when the request mapper clones the request with a new URL.- Author:
- Jesse Long
-
Constructor Summary
ConstructorDescriptionRequestSettingRequestHandler
(Request request, IRequestHandler delegate) Creates a new instance -
Method Summary
Modifier and TypeMethodDescriptionvoid
detach
(IRequestCycle requestCycle) Returns the request handler to which responding will be delegated.Returns the request that will be set before responding.void
respond
(IRequestCycle requestCycle)
-
Constructor Details
-
RequestSettingRequestHandler
Creates a new instance- Parameters:
request
- The request to use when respondingdelegate
- The request handler to delegate responding to
-
-
Method Details
-
getRequest
Returns the request that will be set before responding.- Returns:
- the request that will be set before responding.
-
getDelegateHandler
Returns the request handler to which responding will be delegated.- Specified by:
getDelegateHandler
in interfaceIRequestHandlerDelegate
- Returns:
- the request handler to which responding will be delegated.
-
respond
- Specified by:
respond
in interfaceIRequestHandler
-
detach
- Specified by:
detach
in interfaceIRequestHandler
-