com.primix.tapestry
Class RedirectException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.primix.tapestry.RequestCycleException
|
+--com.primix.tapestry.RedirectException
- All Implemented Interfaces:
- java.io.Serializable
- public class RedirectException
- extends RequestCycleException
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 desirous to go
to some arbitrary new location.
- Since:
- 1.0.6
- Version:
- $Id: RedirectException.java,v 1.2 2001/09/21 12:35:09 hship Exp $
- Author:
- Howard Ship
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RedirectException
public RedirectException(java.lang.String location)
RedirectException
public RedirectException(java.lang.String message,
java.lang.String location)
- Parameters:
message
- A message describing why the redirection is taking place.location
- The location to redirect to, may be a relative path (relative
to the ServletContext
).- See Also:
HttpServletResponse.sendRedirect(String)
,
HttpServletResponse.encodeRedirectURL(String)
getLocation
public java.lang.String getLocation()