java.lang.Object
org.apache.wicket.cdi.ConversationPropagator
- All Implemented Interfaces:
IRequestCycleListener
A request cycle listener that takes care of propagating persistent
conversations.
- Author:
- igor
- See Also:
-
ConversationScoped
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConversationPropagator
(Application application, IConversationPropagation propagation) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
activateForHandler
(IRequestHandler handler) Determines whether or not a conversation should be activated fro the specified handler.static String
protected PageParameters
getPageParameters
(IRequestHandler handler) Resolves page parameters from a request handlerstatic void
markPageWithConversationId
(IRequestHandler handler, String cid) void
onDetach
(RequestCycle cycle) Called after the request cycle has been detachedvoid
onRequestHandlerExecuted
(RequestCycle cycle, IRequestHandler handler) Called after anIRequestHandler
has been executed.void
onRequestHandlerResolved
(RequestCycle cycle, IRequestHandler handler) Called when anIRequestHandler
is resolved and will be executed.void
onUrlMapped
(RequestCycle cycle, IRequestHandler handler, Url url) Called after a Url is generated for aIRequestHandler
.static void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.request.cycle.IRequestCycleListener
onBeginRequest, onEndRequest, onException, onExceptionRequestHandlerResolved, onRequestHandlerScheduled
-
Field Details
-
CID
- See Also:
-
-
Constructor Details
-
ConversationPropagator
Constructor- Parameters:
application
-propagation
-
-
-
Method Details
-
getPropagation
-
onRequestHandlerResolved
Description copied from interface:IRequestCycleListener
Called when anIRequestHandler
is resolved and will be executed.- Specified by:
onRequestHandlerResolved
in interfaceIRequestCycleListener
-
onRequestHandlerExecuted
Description copied from interface:IRequestCycleListener
Called after anIRequestHandler
has been executed. If the execution resulted in an exception this method will not be called for that particularIRequestHandler
.- Specified by:
onRequestHandlerExecuted
in interfaceIRequestCycleListener
-
onUrlMapped
Description copied from interface:IRequestCycleListener
Called after a Url is generated for aIRequestHandler
. This method can be used to modify generated urls, for example query parameters can be added.- Specified by:
onUrlMapped
in interfaceIRequestCycleListener
-
onDetach
Description copied from interface:IRequestCycleListener
Called after the request cycle has been detached- Specified by:
onDetach
in interfaceIRequestCycleListener
-
activateForHandler
Determines whether or not a conversation should be activated fro the specified handler. This method is used to filter out conversation activation for utility handlers such as theBufferedResponseRequestHandler
- Parameters:
handler
-- Returns:
true
iff a conversation should be activated
-
markPageWithConversationId
-
getConversationIdFromPage
-
removeConversationIdFromPage
-
getPageParameters
Resolves page parameters from a request handler- Parameters:
handler
-- Returns:
- page parameters or
null
if none
-