Project Build Files
Class RedirectException
java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- com.avoka.fc.core.servlet.RedirectException
- com.avoka.tm.util.RedirectException
All Implemented Interfaces:
java.io.Serializable
public class RedirectException
extends com.avoka.fc.core.servlet.RedirectException
Provides an redirect exception which can be used to redirect the user to another location.
By convention if the redirect target URL is prefixed with '/' then the web applications context path will be prepended to the target URL. For example:
'/form-expired.htm' -> 'http://www.mycorp.com/forms/form-expired.htm'
Note this URL context path pre-pending should be done by the calling code and will not be done by this class.
Since:
5.0
See Also:
[Serialized Form](../../../../serialized-form.html#com.avoka.tm.util.RedirectException)
Constructor Summary
Constructors
Constructor and Description
[RedirectException](../../../../com/avoka/tm/util/RedirectException.html#RedirectException-java.lang.String-)(java.lang.String target)
Create a Redirect exception with the given target URL.
* ### Method Summary
* ### Methods inherited from class com.avoka.fc.core.servlet.RedirectException
`getTarget, toString`
* ### Methods inherited from class java.lang.Throwable
`addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`
* ### Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`
Constructor Detail
RedirectException
public RedirectException(java.lang.String target)
Create a Redirect exception with the given target URL.
By convention if the redirect target URL is prefixed with '/' then the web applications context path will be prepended to the target URL. For example:
'/form-expired.htm' -> 'http://www.mycorp.com/forms/form-expired.htm'
Note this URL context path pre-pending should be done by the calling code and will not be done by this class.
Parameters:
target
- the redirect target URL
Class