Package org.apache.wicket
Class NonResettingRestartException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
-
- org.apache.wicket.NonResettingRestartException
-
- All Implemented Interfaces:
Serializable
public class NonResettingRestartException extends RequestHandlerExecutor.ReplaceHandlerException
Causes Wicket to interrupt current request processing and immediately respond with the specified page. Does not reset the header meta data (e.g. cookies).- See Also:
RestartResponseException
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NonResettingRestartException(Class<? extends Page> pageClass)
Constructor.NonResettingRestartException(Class<? extends Page> pageClass, PageParameters params)
Constructor.NonResettingRestartException(Class<? extends Page> pageClass, PageParameters params, RenderPageRequestHandler.RedirectPolicy redirectPolicy)
Constructor.NonResettingRestartException(String redirectUrl)
Constructor.NonResettingRestartException(IRequestHandler handler, boolean removeAll)
Constructor.
-
Method Summary
-
Methods inherited from class org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
fillInStackTrace, getRemoveScheduled, getReplacementRequestHandler
-
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NonResettingRestartException
public NonResettingRestartException(Class<? extends Page> pageClass)
Constructor.- Parameters:
pageClass
- the class of the new page that should be rendered
-
NonResettingRestartException
public NonResettingRestartException(Class<? extends Page> pageClass, PageParameters params)
Constructor.- Parameters:
pageClass
- the class of the new page that should be renderedparams
- the page parameters to use for the new page
-
NonResettingRestartException
public NonResettingRestartException(Class<? extends Page> pageClass, PageParameters params, RenderPageRequestHandler.RedirectPolicy redirectPolicy)
Constructor.- Parameters:
pageClass
- the class of the new page that should be renderedparams
- the page parameters to use for the new pageredirectPolicy
- the policy that mandates whether to do a redirect
-
NonResettingRestartException
public NonResettingRestartException(String redirectUrl)
Constructor.- Parameters:
redirectUrl
- URL to redirect to.
-
NonResettingRestartException
public NonResettingRestartException(IRequestHandler handler, boolean removeAll)
Constructor.- Parameters:
handler
- the IRequestHandler to useremoveAll
- a flag indicating whether to remove already a scheduled IRequestHandlers
-
-