Modifier and Type | Field and Description |
---|---|
private String | location
The URL to be redirected to. |
private final int | responseCode
The response code. |
private static final long |
Access | Constructor and Description |
---|---|
public | HttpRetryException(String
the detail message. detail, int the HTTP response code from server. code)Constructs a new |
public | HttpRetryException(String
the detail message. detail, int the HTTP response code from server. code, String the URL to be redirected to location)Constructs a new |
Modifier and Type | Method and Description |
---|---|
public String | Returns: The location stringReturns the value of the Location header field if the error resulted from redirection. |
public String | Returns: The reason stringReturns a string explaining why the http request could not be retried. |
public int |
location | back to summary |
---|---|
private String location The URL to be redirected to. |
responseCode | back to summary |
---|---|
private final int responseCode The response code. |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides java. |
HttpRetryException | back to summary |
---|---|
public HttpRetryException(String detail, int code) Constructs a new
|
HttpRetryException | back to summary |
---|---|
public HttpRetryException(String detail, int code, String location) Constructs a new |
getLocation | back to summary |
---|---|
public String getLocation() Returns the value of the Location header field if the error resulted from redirection.
|
getReason | back to summary |
---|---|
public String getReason() Returns a string explaining why the http request could not be retried.
|
responseCode | back to summary |
---|---|
public int responseCode() Returns the http response code
|