Package org.apache.wicket
Class RestartResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
-
- org.apache.wicket.request.flow.ResetResponseException
-
- org.apache.wicket.RestartResponseException
-
- All Implemented Interfaces:
java.io.Serializable
public class RestartResponseException extends org.apache.wicket.request.flow.ResetResponseExceptionCauses Wicket to interrupt current request processing and immediately respond with the specified page.- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
NonResettingRestartException, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RestartResponseException(java.lang.Class<C> pageClass)Redirects to the specified bookmarkable pageRestartResponseException(java.lang.Class<C> pageClass, org.apache.wicket.request.mapper.parameter.PageParameters params)Redirects to the specified bookmarkable page with the given page parametersRestartResponseException(IPageProvider pageProvider, RenderPageRequestHandler.RedirectPolicy redirectPolicy)Redirects to the page provided by the passedpageProviderusing the explicitredirectPolicyRestartResponseException(IRequestablePage page)Redirects to the specified page
-
Method Summary
-
Methods inherited from class org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
fillInStackTrace, getRemoveScheduled, getReplacementRequestHandler
-
-
-
-
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, org.apache.wicket.request.mapper.parameter.PageParameters params)Redirects to the specified bookmarkable page with the given page parameters- Type Parameters:
C- The page type- Parameters:
pageClass- class of bookmarkable pageparams- 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 passedpageProviderusing the explicitredirectPolicy- Parameters:
pageProvider- the provider for the pageredirectPolicy- the redirect policy to use
-
-