public class RedirectException
extends java.io.IOException
IOException
used to convey that a connection has failed as a redirect has been encountered.Constructor and Description |
---|
RedirectException(int statusCode,
java.lang.String location)
Constructs a new
RedirectException instance. |
RedirectException(java.lang.String msg,
int statusCode,
java.lang.String location)
Constructs a new
RedirectException instance with an initial message. |
RedirectException(java.lang.String msg,
java.lang.Throwable cause,
int statusCode,
java.lang.String location)
Constructs a new
RedirectException instance with an initial message and cause. |
RedirectException(java.lang.Throwable cause,
int statusCode,
java.lang.String location)
Constructs a new
RedirectException instance with an initial cause. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocation()
Get the redirection target location.
|
int |
getStatusCode()
Get the HTTP status code.
|
public RedirectException(int statusCode, java.lang.String location)
RedirectException
instance. The message is left blank (null
), and no cause is
specified.statusCode
- the status codelocation
- the redirection location, if anypublic RedirectException(java.lang.String msg, int statusCode, java.lang.String location)
RedirectException
instance with an initial message. No cause is specified.msg
- the messagestatusCode
- the status codelocation
- the redirection location, if anypublic RedirectException(java.lang.Throwable cause, int statusCode, java.lang.String location)
RedirectException
instance with an initial cause. If a non-null
cause is
specified, its message is used to initialize the message of this RedirectException
; otherwise the message
is left blank (null
).cause
- the causestatusCode
- the status codelocation
- the redirection location, if anypublic RedirectException(java.lang.String msg, java.lang.Throwable cause, int statusCode, java.lang.String location)
RedirectException
instance with an initial message and cause.msg
- the messagecause
- the causestatusCode
- the status codelocation
- the redirection location, if anyCopyright © 2016 JBoss, a division of Red Hat, Inc.