org.apache.wicket
Class RedirectToUrlException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.wicket.AbortException
                  extended by org.apache.wicket.AbstractRestartResponseException
                      extended by org.apache.wicket.RedirectToUrlException
All Implemented Interfaces:
java.io.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(java.lang.String url)
          Your URL should be one of the following: Fully qualified "http://foo.com/bar" Relative to the Wicket filter/servlet, e.g.
 
Method Summary
 
Methods inherited from class org.apache.wicket.AbortException
fillInStackTrace
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedirectToUrlException

public RedirectToUrlException(java.lang.String url)
Your URL should be one of the following:

Parameters:
url - URL to redirect to.


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.