|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.cycle.AbstractRequestCycleListener
public abstract class AbstractRequestCycleListener
Empty implementation of an IRequestCycleListener
useful as a starting point for your own
custom listener.
Constructor Summary | |
---|---|
AbstractRequestCycleListener()
|
Method Summary | |
---|---|
void |
onBeginRequest(RequestCycle cycle)
Called when the request cycle object is beginning its response |
void |
onDetach(RequestCycle cycle)
Called after the request cycle has been detached |
void |
onEndRequest(RequestCycle cycle)
Called when the request cycle object has finished its response |
IRequestHandler |
onException(RequestCycle cycle,
Exception ex)
Called when there is an exception in the request cycle that would normally be handled by RequestCycle.handleException(Exception)
Note that in the event of an exception, IRequestCycleListener.onEndRequest(RequestCycle) will still be called after
these listeners have IRequestCycleListener.onException(RequestCycle, Exception) called |
void |
onExceptionRequestHandlerResolved(RequestCycle cycle,
IRequestHandler handler,
Exception exception)
Called when an IRequestHandler is resolved for an exception and will be executed. |
void |
onRequestHandlerExecuted(RequestCycle cycle,
IRequestHandler handler)
Called after an IRequestHandler has been executed. |
void |
onRequestHandlerResolved(RequestCycle cycle,
IRequestHandler handler)
Called when an IRequestHandler is resolved and will be executed. |
void |
onRequestHandlerScheduled(RequestCycle cycle,
IRequestHandler handler)
Called when a IRequestHandler has been scheduled. |
void |
onUrlMapped(RequestCycle cycle,
IRequestHandler handler,
Url url)
Called after a Url is generated for a IRequestHandler . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractRequestCycleListener()
Method Detail |
---|
public void onBeginRequest(RequestCycle cycle)
IRequestCycleListener
onBeginRequest
in interface IRequestCycleListener
public void onEndRequest(RequestCycle cycle)
IRequestCycleListener
onEndRequest
in interface IRequestCycleListener
public void onDetach(RequestCycle cycle)
IRequestCycleListener
onDetach
in interface IRequestCycleListener
public void onRequestHandlerScheduled(RequestCycle cycle, IRequestHandler handler)
IRequestCycleListener
IRequestHandler
has been scheduled. Can be called multiple times during
a request when new handlers get scheduled for processing.
onRequestHandlerScheduled
in interface IRequestCycleListener
RequestCycle.scheduleRequestHandlerAfterCurrent(IRequestHandler)
public void onRequestHandlerResolved(RequestCycle cycle, IRequestHandler handler)
IRequestCycleListener
IRequestHandler
is resolved and will be executed.
onRequestHandlerResolved
in interface IRequestCycleListener
public IRequestHandler onException(RequestCycle cycle, Exception ex)
IRequestCycleListener
RequestCycle.handleException(Exception)
Note that in the event of an exception, IRequestCycleListener.onEndRequest(RequestCycle)
will still be called after
these listeners have IRequestCycleListener.onException(RequestCycle, Exception)
called
onException
in interface IRequestCycleListener
ex
- the exception that was passed in to
RequestCycle.handleException(Exception)
null
if none. If a request handler
is returned, it will override any configured exception mapperpublic void onExceptionRequestHandlerResolved(RequestCycle cycle, IRequestHandler handler, Exception exception)
IRequestCycleListener
IRequestHandler
is resolved for an exception and will be executed.
onExceptionRequestHandlerResolved
in interface IRequestCycleListener
public void onRequestHandlerExecuted(RequestCycle cycle, IRequestHandler handler)
IRequestCycleListener
IRequestHandler
has been executed. If the execution resulted in an
exception this method will not be called for that particular IRequestHandler
.
onRequestHandlerExecuted
in interface IRequestCycleListener
public void onUrlMapped(RequestCycle cycle, IRequestHandler handler, Url url)
IRequestCycleListener
IRequestHandler
. This method can be used to
modify generated urls, for example query parameters can be added.
onUrlMapped
in interface IRequestCycleListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |