IRequestCycleListener
instead.@Deprecated public abstract class AbstractRequestCycleListener extends Object implements IRequestCycleListener
IRequestCycleListener
useful as a starting point for your own
custom listener.Constructor and Description |
---|
AbstractRequestCycleListener()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
onBeginRequest(RequestCycle cycle)
Deprecated.
Called when the request cycle object is beginning its response
|
void |
onDetach(RequestCycle cycle)
Deprecated.
Called after the request cycle has been detached
|
void |
onEndRequest(RequestCycle cycle)
Deprecated.
Called when the request cycle object has finished before flushing the response
|
IRequestHandler |
onException(RequestCycle cycle,
Exception ex)
Deprecated.
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)
Deprecated.
Called when an
IRequestHandler is resolved for an exception and will be executed. |
void |
onRequestHandlerExecuted(RequestCycle cycle,
IRequestHandler handler)
Deprecated.
Called after an
IRequestHandler has been executed. |
void |
onRequestHandlerResolved(RequestCycle cycle,
IRequestHandler handler)
Deprecated.
Called when an
IRequestHandler is resolved and will be executed. |
void |
onRequestHandlerScheduled(RequestCycle cycle,
IRequestHandler handler)
Deprecated.
Called when a
IRequestHandler has been scheduled. |
void |
onUrlMapped(RequestCycle cycle,
IRequestHandler handler,
Url url)
Deprecated.
Called after a Url is generated for a
IRequestHandler . |
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
Important: Custom implementations are recommended to not try to
handle exceptions implementing IWicketInternalException
interface.
Usually such kind of exceptions should be handled by the framework.
onException
in interface IRequestCycleListener
cycle
- The current request cycle
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 mapper
.public 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
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.