org.apache.wicket.protocol.http
Class RequestLoggerRequestCycleListener

java.lang.Object
  extended by org.apache.wicket.request.cycle.AbstractRequestCycleListener
      extended by org.apache.wicket.protocol.http.RequestLoggerRequestCycleListener
All Implemented Interfaces:
IRequestCycleListener

public class RequestLoggerRequestCycleListener
extends AbstractRequestCycleListener

Listener that logs request details in the Application.getRequestLogger() request logger.


Constructor Summary
RequestLoggerRequestCycleListener()
           
 
Method Summary
 void onBeginRequest(RequestCycle cycle)
          Called when the request cycle object is beginning its response
 void onEndRequest(RequestCycle cycle)
          Called when the request cycle object has finished its response
 void onExceptionRequestHandlerResolved(RequestCycle cycle, IRequestHandler handler, java.lang.Exception exception)
          Called when an IRequestHandler is resolved for an exception and will be 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.
 
Methods inherited from class org.apache.wicket.request.cycle.AbstractRequestCycleListener
onDetach, onException, onRequestHandlerExecuted, onUrlMapped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestLoggerRequestCycleListener

public RequestLoggerRequestCycleListener()
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
Overrides:
onBeginRequest in class AbstractRequestCycleListener

onRequestHandlerScheduled

public void onRequestHandlerScheduled(RequestCycle cycle,
                                      IRequestHandler handler)
Description copied from interface: IRequestCycleListener
Called when a IRequestHandler has been scheduled. Can be called multiple times during a request when new handlers get scheduled for processing.

Specified by:
onRequestHandlerScheduled in interface IRequestCycleListener
Overrides:
onRequestHandlerScheduled in class AbstractRequestCycleListener
See Also:
RequestCycle.scheduleRequestHandlerAfterCurrent(IRequestHandler)

onRequestHandlerResolved

public void onRequestHandlerResolved(RequestCycle cycle,
                                     IRequestHandler handler)
Description copied from interface: IRequestCycleListener
Called when an IRequestHandler is resolved and will be executed.

Specified by:
onRequestHandlerResolved in interface IRequestCycleListener
Overrides:
onRequestHandlerResolved in class AbstractRequestCycleListener

onExceptionRequestHandlerResolved

public void onExceptionRequestHandlerResolved(RequestCycle cycle,
                                              IRequestHandler handler,
                                              java.lang.Exception exception)
Description copied from interface: IRequestCycleListener
Called when an IRequestHandler is resolved for an exception and will be executed.

Specified by:
onExceptionRequestHandlerResolved in interface IRequestCycleListener
Overrides:
onExceptionRequestHandlerResolved in class AbstractRequestCycleListener

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
Overrides:
onEndRequest in class AbstractRequestCycleListener


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.