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:
java.io.Serializable
public class RedirectToUrlException extends RequestHandlerExecutor.ReplaceHandlerException
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 theRestartResponseException- See Also:
RestartResponseException,RestartResponseAtInterceptPageException, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RedirectToUrlException(java.lang.String redirectUrl)Construct.RedirectToUrlException(java.lang.String redirectUrl, int statusCode)Construct.
-
Method Summary
-
Methods inherited from class org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
fillInStackTrace, getRemoveScheduled, getReplacementRequestHandler
-
-
-
-
Constructor Detail
-
RedirectToUrlException
public RedirectToUrlException(java.lang.String redirectUrl)
Construct.- Parameters:
redirectUrl- URL to redirect to.
-
RedirectToUrlException
public RedirectToUrlException(java.lang.String redirectUrl, int statusCode)Construct.- Parameters:
redirectUrl- URL to redirect to.statusCode- 301 (Moved permanently) or 302 (Moved temporarily)
-
-