org.apache.tapestry
Class RedirectException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.apache.hivemind.ApplicationRuntimeException
                  extended byorg.apache.tapestry.RedirectException
All Implemented Interfaces:
org.apache.hivemind.Locatable, java.io.Serializable

public class RedirectException
extends org.apache.hivemind.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
Author:
Howard Lewis Ship
See Also:
Serialized Form

Constructor Summary
RedirectException(java.lang.String redirectLocation)
           
RedirectException(java.lang.String message, java.lang.String redirectLocation)
           
 
Method Summary
 java.lang.String getRedirectLocation()
           
 
Methods inherited from class org.apache.hivemind.ApplicationRuntimeException
getCause, getComponent, getLocation, getRootCause, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedirectException

public RedirectException(java.lang.String redirectLocation)

RedirectException

public RedirectException(java.lang.String message,
                         java.lang.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 java.lang.String getRedirectLocation()