org.apache.wicket.request.cycle
Class RequestCycleListenerCollection
java.lang.Object
org.apache.wicket.util.listener.ListenerCollection<IRequestCycleListener>
org.apache.wicket.request.cycle.RequestCycleListenerCollection
- All Implemented Interfaces:
- Serializable, Iterable<IRequestCycleListener>, IRequestCycleListener
public class RequestCycleListenerCollection
- extends ListenerCollection<IRequestCycleListener>
- implements IRequestCycleListener
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestCycleListenerCollection
public RequestCycleListenerCollection()
onBeginRequest
public void onBeginRequest(RequestCycle cycle)
- Description copied from interface:
IRequestCycleListener
- Called when the request cycle object is beginning its response
- Specified by:
onBeginRequest
in interface IRequestCycleListener
onEndRequest
public void onEndRequest(RequestCycle cycle)
- Description copied from interface:
IRequestCycleListener
- Called when the request cycle object has finished its response
- Specified by:
onEndRequest
in interface IRequestCycleListener
onException
public IRequestHandler onException(RequestCycle cycle,
Exception ex)
- Description copied from interface:
IRequestCycleListener
- 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
- Specified by:
onException
in interface IRequestCycleListener
ex
- the exception that was passed in to
RequestCycle.handleException(Exception)
- Returns:
- request handler that will be exectued or
null
if none. If a request handler
is returned, it will override any configured exception mapper
onDetach
public void onDetach(RequestCycle cycle)
- Description copied from interface:
IRequestCycleListener
- Called after the request cycle has been detached
- Specified by:
onDetach
in interface IRequestCycleListener
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.