- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.xnio.http.RedirectException
-
- All Implemented Interfaces:
java.io.Serializable
public class RedirectException extends java.io.IOExceptionAn extension ofIOExceptionused to convey that a connection has failed as a redirect has been encountered.- Author:
- Darran Lofthouse
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RedirectException(int statusCode, java.lang.String location)Constructs a newRedirectExceptioninstance.RedirectException(java.lang.String msg, int statusCode, java.lang.String location)Constructs a newRedirectExceptioninstance with an initial message.RedirectException(java.lang.String msg, java.lang.Throwable cause, int statusCode, java.lang.String location)Constructs a newRedirectExceptioninstance with an initial message and cause.RedirectException(java.lang.Throwable cause, int statusCode, java.lang.String location)Constructs a newRedirectExceptioninstance with an initial cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLocation()Get the redirection target location.intgetStatusCode()Get the HTTP status code.
-
-
-
Constructor Detail
-
RedirectException
public RedirectException(int statusCode, java.lang.String location)Constructs a newRedirectExceptioninstance. The message is left blank (null), and no cause is specified.- Parameters:
statusCode- the status codelocation- the redirection location, if any
-
RedirectException
public RedirectException(java.lang.String msg, int statusCode, java.lang.String location)Constructs a newRedirectExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the messagestatusCode- the status codelocation- the redirection location, if any
-
RedirectException
public RedirectException(java.lang.Throwable cause, int statusCode, java.lang.String location)Constructs a newRedirectExceptioninstance with an initial cause. If a non-nullcause is specified, its message is used to initialize the message of thisRedirectException; otherwise the message is left blank (null).- Parameters:
cause- the causestatusCode- the status codelocation- the redirection location, if any
-
RedirectException
public RedirectException(java.lang.String msg, java.lang.Throwable cause, int statusCode, java.lang.String location)Constructs a newRedirectExceptioninstance with an initial message and cause.- Parameters:
msg- the messagecause- the causestatusCode- the status codelocation- the redirection location, if any
-
-