org.apache.tapestry
Class RedirectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.tapestry.ApplicationRuntimeException
                  extended by org.apache.tapestry.RedirectException
All Implemented Interfaces:
Serializable, ILocatable

public class RedirectException
extends ApplicationRuntimeException

Exception thrown to force a redirection to an arbitrary location. This is used when, after processing a request (such as a form submission or a link being clicked), it is desirable to go to some arbitrary new location.

Since:
1.0.6
Version:
$Id: RedirectException.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship
See Also:
Serialized Form

Constructor Summary
RedirectException(String redirectLocation)
           
RedirectException(String message, String redirectLocation)
           
 
Method Summary
 String getRedirectLocation()
           
 
Methods inherited from class org.apache.tapestry.ApplicationRuntimeException
getCause, getComponent, getLocation
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

RedirectException

public RedirectException(String redirectLocation)

RedirectException

public RedirectException(String message,
                         String redirectLocation)
Parameters:
message - A message describing why the redirection is taking place.
redirectLocation - The location to redirect to, may be a relative path (relative to the ServletContext).
See Also:
HttpServletResponse.sendRedirect(String), HttpServletResponse.encodeRedirectURL(String)
Method Detail

getRedirectLocation

public String getRedirectLocation()