Class Info |
|---|
public static class Builder Builder object for an HTTP response exception. |
Constructor Name |
|---|
public Builder(int statusCode, String statusMessage, HttpHeaders headers) Constructs a Builder object. |
public Builder(HttpResponse response) Constructs a Builder object. |
Qualifier and Type | Method Name and Description |
|---|---|
HttpResponseException | build() Creates an HttpResponseException instance. |
final String | Obtains the HTTP response content. |
Builder | Sets the HTTP response content. |
Builder | setError(ErrorResponse error) Sets the error response object. |
ErrorResponse | getError() Obtains the error response object. |
Builder | setHeaders(HttpHeaders headers) Sets headers in the HTTP response. |
HttpHeaders | Obtains headers in the HTTP response. |
final String | Obtains the detailed information. |
Builder | setMessage(String message) Sets the detailed information. |
final int | Obtains the HTTP status code. |
Builder | setStatusCode(int statusCode) Sets the HTTP status code. |
final String | Obtains the HTTP status information. |
Builder | setStatusMessage(String statusMessage ) Sets the HTTP status information. |
Constructor |
|---|
public Builder(int statusCode, String statusMessage, HttpHeaders headers) Constructs a Builder object. |
Parameters
Name | Description |
|---|---|
statusCode | HTTP status code. |
statusMessage | HTTP status information. |
headers | HTTP response headers. |
Constructor |
|---|
public Builder(HttpResponse response) Constructs a Builder object. |
Parameters
Name | Description |
|---|---|
response | HTTP response. |
Method |
|---|
public HttpResponseException build() Creates an HttpResponseException instance. |
Returns
Type | Description |
|---|---|
HttpResponseException | HttpResponseException instance. |
Method |
|---|
public final String getContent() Obtains the HTTP response content. |
Returns
Type | Description |
|---|---|
final String | HTTP response content. |
Method |
|---|
public Builder setContent(String content) Sets the HTTP response content. |
Parameters
Name | Description |
|---|---|
content | HTTP response content. |
Returns
Type | Description |
|---|---|
Builder | Builder object. |
Method |
|---|
public Builder setError(ErrorResponse error) Sets the error response object. |
Parameters
Name | Description |
|---|---|
error | Error response. |
Returns
Type | Description |
|---|---|
Builder | Builder object. |
Method |
|---|
public ErrorResponse getError() Obtains the error response object. |
Returns
Type | Description |
|---|---|
ErrorResponse | Error response object. |
Method |
|---|
public Builder setError(ErrorResponse error) Sets the error response object. |
Parameters
Name | Description |
|---|---|
error | Error response. |
Returns
Type | Description |
|---|---|
Builder | Builder object. |
Method |
|---|
public Builder setHeaders(HttpHeaders headers) Sets headers in the HTTP response. |
Parameters
Name | Description |
|---|---|
headers | Headers in the HTTP response. |
Returns
Type | Description |
|---|---|
Builder | Builder object. |
Method |
|---|
public HttpHeaders getHeaders() Obtains headers in the HTTP response. |
Returns
Type | Description |
|---|---|
HttpHeaders | Headers in the HTTP response. |
Method |
|---|
public final String getMessage() Obtains the detailed information. |
Returns
Type | Description |
|---|---|
final String | Detailed information. |
Method |
|---|
public Builder setMessage(String message) Sets the detailed information. |
Parameters
Name | Description |
|---|---|
message | Detailed information. |
Returns
Type | Description |
|---|---|
Builder | Builder object. |
Method |
|---|
public final int getStatusCode() Obtains the HTTP status code. |
Returns
Type | Description |
|---|---|
final int | HTTP status code. |
Method |
|---|
public Builder setStatusCode(int statusCode) Sets the HTTP status code. |
Parameters
Name | Description |
|---|---|
statusCode | HTTP status code. |
Returns
Type | Description |
|---|---|
Builder | Builder object. |