IOException used to convey that a connection has failed as a redirect has been encountered.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | RedirectException(final int
the status code statusCode, final String the redirection location, if any location)Constructs a new |
| public | RedirectException(final String
the message msg, final int the status code statusCode, final String the redirection location, if any location)Constructs a new |
| public | RedirectException(final Throwable
the cause cause, final int the status code statusCode, final String the redirection location, if any location)Constructs a new |
| public | RedirectException(final String
the message msg, final Throwable the cause cause, final int the status code statusCode, final String the redirection location, if any location)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public int |
| location | back to summary |
|---|---|
| private final String location | |
| statusCode | back to summary |
|---|---|
| private final int statusCode | |
| RedirectException | back to summary |
|---|---|
| public RedirectException(final int statusCode, final String location) Constructs a new
| |
| RedirectException | back to summary |
|---|---|
| public RedirectException(final String msg, final int statusCode, final String location) Constructs a new | |
| RedirectException | back to summary |
|---|---|
| public RedirectException(final Throwable cause, final int statusCode, final String location) Constructs a new | |
| RedirectException | back to summary |
|---|---|
| public RedirectException(final String msg, final Throwable cause, final int statusCode, final String location) Constructs a new | |
| getLocation | back to summary |
|---|---|
| public String getLocation() Get the redirection target location.
| |
| getStatusCode | back to summary |
|---|---|
| public int getStatusCode() Get the HTTP status code. This is the reason for the redirect.
| |