Module org.apache.wicket.request
Package org.apache.wicket.request.flow
Class RedirectToUrlException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
org.apache.wicket.request.flow.RedirectToUrlException
- All Implemented Interfaces:
Serializable
Causes Wicket to interrupt current request processing and send a redirect to the given url.
Use this if you want to redirect to an external or none Wicket url. If you want to redirect to a
page use the org.apache.wicket.RestartResponseException
Also see org.apache.wicket.RestartResponseAtInterceptPageException
- See Also:
-
Constructor Summary
ConstructorDescriptionRedirectToUrlException
(String redirectUrl) Construct.RedirectToUrlException
(String redirectUrl, int statusCode) Construct.RedirectToUrlException
(String redirectUrl, int statusCode, RedirectRequestHandler.Mode mode) Construct. -
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 Details
-
RedirectToUrlException
Construct.- Parameters:
redirectUrl
- URL to redirect to.
-
RedirectToUrlException
Construct.- Parameters:
redirectUrl
- URL to redirect to.statusCode
- 301 (Moved permanently) or 302 (Moved temporarily)
-
RedirectToUrlException
Construct.- Parameters:
redirectUrl
- URL to redirect to.statusCode
- 301 (Moved permanently) or 302 (Moved temporarily)mode
- The way to made the redirect - via sendRedirect() or directly via setStatus()+setHeader("Location", ...)
-