org.apache.wicket.request.cycle
Class RequestCycleListenerCollection

java.lang.Object
  extended by org.apache.wicket.util.listener.ListenerCollection<IRequestCycleListener>
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.util.listener.ListenerCollection
ListenerCollection.INotifier<T>
 
Constructor Summary
RequestCycleListenerCollection()
           
 
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
 
Methods inherited from class org.apache.wicket.util.listener.ListenerCollection
add, isAllowingDuplicates, isAllowingNulls, iterator, notify, notifyIgnoringExceptions, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestCycleListenerCollection

public RequestCycleListenerCollection()
Method Detail

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.