org.apache.wicket
Class RestartResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.wicket.request.RequestHandlerStack.ReplaceHandlerException
                  extended by org.apache.wicket.request.flow.ResetResponseException
                      extended by org.apache.wicket.RestartResponseException
All Implemented Interfaces:
java.io.Serializable

public class RestartResponseException
extends ResetResponseException

Causes Wicket to interrupt current request processing and immediately respond with the specified page.

Author:
Igor Vaynberg (ivaynberg)
See Also:
Serialized Form

Constructor Summary
RestartResponseException(java.lang.Class<C> pageClass)
          Redirects to the specified bookmarkable page
RestartResponseException(java.lang.Class<C> pageClass, PageParameters params)
          Redirects to the specified bookmarkable page with the given page parameters
RestartResponseException(IPageProvider pageProvider, RenderPageRequestHandler.RedirectPolicy redirectPolicy)
          Redirects to the page provided by the passed pageProvider using the explicit redirectPolicy
RestartResponseException(IRequestablePage page)
          Redirects to the specified page
 
Method Summary
 
Methods inherited from class org.apache.wicket.request.RequestHandlerStack.ReplaceHandlerException
fillInStackTrace
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestartResponseException

public RestartResponseException(java.lang.Class<C> pageClass)
Redirects to the specified bookmarkable page

Type Parameters:
C - The page type
Parameters:
pageClass - class of bookmarkable page

RestartResponseException

public RestartResponseException(java.lang.Class<C> pageClass,
                                PageParameters params)
Redirects to the specified bookmarkable page with the given page parameters

Type Parameters:
C - The page type
Parameters:
pageClass - class of bookmarkable page
params - bookmarkable page parameters

RestartResponseException

public RestartResponseException(IRequestablePage page)
Redirects to the specified page

Parameters:
page - redirect page

RestartResponseException

public RestartResponseException(IPageProvider pageProvider,
                                RenderPageRequestHandler.RedirectPolicy redirectPolicy)
Redirects to the page provided by the passed pageProvider using the explicit redirectPolicy

Parameters:
pageProvider - the provider for the page
redirectPolicy - the redirect policy to use


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