org.apache.wicket.examples
Class WicketExampleRequestCycle

java.lang.Object
  extended by org.apache.wicket.RequestCycle
      extended by org.apache.wicket.protocol.http.WebRequestCycle
          extended by org.apache.wicket.examples.WicketExampleRequestCycle

public class WicketExampleRequestCycle
extends WebRequestCycle

Handles the PageExpiredException so that the SourcesPage can recover from a session expired.

Author:
rgravener

Field Summary
 
Fields inherited from class org.apache.wicket.RequestCycle
application, processor, request, response
 
Constructor Summary
WicketExampleRequestCycle(WebApplication application, WebRequest request, Response response)
          Construct.
 
Method Summary
 Page onRuntimeException(Page page, RuntimeException e)
          Template method that is called when a runtime exception is thrown, just before the actual handling of the runtime exception.
 
Methods inherited from class org.apache.wicket.protocol.http.WebRequestCycle
getProcessor, getWebRequest, getWebResponse, getWebSession, isRedirect, newBrowserInfoPage, newClientInfo, onExceptionLoop, redirectTo
 
Methods inherited from class org.apache.wicket.RequestCycle
detach, get, getApplication, getClientInfo, getMetaData, getOriginalResponse, getPageParameters, getRedirect, getRequest, getRequestTarget, getResponse, getResponsePage, getResponsePageClass, getSession, getStartTime, isUrlForNewWindowEncoding, logRuntimeException, onAfterTargetsDetached, onBeginRequest, onEndRequest, onRequestTargetSet, request, request, request, set, setAutomaticallyClearFeedbackMessages, setMetaData, setRedirect, setRequest, setRequestTarget, setResponse, setResponsePage, setResponsePage, setResponsePage, setResponsePage, setUrlForNewWindowEncoding, toString, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, wasHandled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WicketExampleRequestCycle

public WicketExampleRequestCycle(WebApplication application,
                                 WebRequest request,
                                 Response response)
Construct.

Parameters:
application -
request -
response -
Method Detail

onRuntimeException

public Page onRuntimeException(Page page,
                               RuntimeException e)
Description copied from class: RequestCycle
Template method that is called when a runtime exception is thrown, just before the actual handling of the runtime exception. This is called by AbstractRequestCycleProcessor.respond(RuntimeException, RequestCycle).

Overrides:
onRuntimeException in class RequestCycle
Parameters:
page - Any page context where the exception was thrown
e - The exception
Returns:
Any error page to redirect to
See Also:
RequestCycle.onRuntimeException(org.apache.wicket.Page, java.lang.RuntimeException)


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