Class PageRequestHandlerTracker

java.lang.Object
org.apache.wicket.request.cycle.PageRequestHandlerTracker
All Implemented Interfaces:
IRequestCycleListener

Registers and retrieves first and last executed IPageRequestHandler in a request cycle. Can be used to find out what is the requested page and what is the actual response page.

To use it an application needs to register it with:


          application.getRequestCycleListeners().add(new PageRequestHandlerTracker());
     

The result can then be accessed at the end of each RequestCycle with:


          IPageRequestHandler first = PageRequestHandlerTracker.getFirstHandler(RequestCycle.get());
          IPageRequestHandler last = PageRequestHandlerTracker.getLastHandler(RequestCycle.get());
     
Since:
1.5.8