org.apache.wicket
Class RedirectToUrlException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.wicket.AbortException
org.apache.wicket.AbstractRestartResponseException
org.apache.wicket.RedirectToUrlException
- All Implemented Interfaces:
- Serializable
public class RedirectToUrlException
- extends AbstractRestartResponseException
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 RestartResponseException
- Author:
- jcompagner
- See Also:
RestartResponseException
,
RestartResponseAtInterceptPageException
,
Serialized Form
Constructor Summary |
RedirectToUrlException(String url)
Your URL should be one of the following:
Fully qualified "http://foo.com/bar"
Relative to the Wicket filter/servlet, e.g. |
RedirectToUrlException
public RedirectToUrlException(String url)
- Your URL should be one of the following:
- Fully qualified "http://foo.com/bar"
- Relative to the Wicket filter/servlet, e.g. "?wicket:interface=foo", "mounted_page"
- Absolute within your web application's context root, e.g. "/foo.html"
- Parameters:
url
- URL to redirect to.
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.