Package de.xima.fc.exceptions.http
Class RedirectException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- de.xima.fc.exceptions.http.RedirectException
 
 
 
 
- 
- All Implemented Interfaces:
 IRedirectAction,Serializable
public class RedirectException extends Exception implements IRedirectAction
An exception that also indicates aredirection action.- Since:
 - 8.0.1
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRedirectException.Builder 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IUrlResourcegetTarget()ViewMessagegetViewMessage()static RedirectException.BuildernewBuilder(IUrlResource target)static RedirectException.BuildernewBuilder(String target)- 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
 - 
 
 - 
 
- 
- 
Method Detail
- 
newBuilder
public static RedirectException.Builder newBuilder(IUrlResource target)
 
- 
newBuilder
public static RedirectException.Builder newBuilder(String target)
 
- 
getTarget
public IUrlResource getTarget()
- Specified by:
 getTargetin interfaceIRedirectAction- Returns:
 - a URL resource of where to redirect to.
 
 
- 
getViewMessage
@Nullable public ViewMessage getViewMessage()
- Specified by:
 getViewMessagein interfaceIRedirectAction- Returns:
 - an optional view message that is to be displayed upon redirection.
 
 
 - 
 
 -