|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.request.cycle.AbstractRequestCycleListener
public abstract class AbstractRequestCycleListener
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, #onEndRequest() will still be called after
these listeners have #onException(Exception) called |
void |
onExceptionRequestHandlerResolved(IRequestHandler handler,
Exception exception)
Called when an IRequestHandler is resolved for an exception and will be executed. |
void |
onRequestHandlerResolved(IRequestHandler handler)
Called when an IRequestHandler is resolved and will be executed. |
void |
onRequestHandlerScheduled(IRequestHandler handler)
|
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 onDetach(RequestCycle cycle)
IRequestCycleListener
onDetach
in interface IRequestCycleListener
public void onEndRequest(RequestCycle cycle)
IRequestCycleListener
onEndRequest
in interface IRequestCycleListener
public IRequestHandler onException(RequestCycle cycle, Exception ex)
IRequestCycleListener
RequestCycle.handleException(Exception)
Note that in the event of an exception, #onEndRequest()
will still be called after
these listeners have #onException(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 onRequestHandlerResolved(IRequestHandler handler)
IRequestCycleListener
IRequestHandler
is resolved and will be executed.
onRequestHandlerResolved
in interface IRequestCycleListener
public void onExceptionRequestHandlerResolved(IRequestHandler handler, Exception exception)
IRequestCycleListener
IRequestHandler
is resolved for an exception and will be executed.
onExceptionRequestHandlerResolved
in interface IRequestCycleListener
public void onRequestHandlerScheduled(IRequestHandler handler)
onRequestHandlerScheduled
in interface IRequestCycleListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |