HttpResponse.
HttpResponse wrapper.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getCode()
Implements org. |
| public Locale | getLocale()
Implements org. |
| public String | getReasonPhrase()
Implements org. |
| public void | setCode(final int
the HTTP status code. code)Implements org. |
| public void | setLocale(final Locale
the new locale loc)Implements org. |
| public void | setReasonPhrase(final String
the new reason phrase as a single-line string, or
reason)null to unset the reason phraseImplements org. |
| HttpResponseWrapper | back to summary |
|---|---|
| public HttpResponseWrapper(final HttpResponse message) | |
| getCode | back to summary |
|---|---|
| public int getCode() Implements org. Doc from org. Obtains the code of this response message.
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Implements org. Doc from org. Obtains the locale of this response.
The locale is used to determine the reason phrase
for the | |
| getReasonPhrase | back to summary |
|---|---|
| public String getReasonPhrase() Implements org. Doc from org. Obtains the reason phrase of this response if available. | |
| setCode | back to summary |
|---|---|
| public void setCode(final int code) Implements org. Doc from org. Updates status code of this response message.
| |
| setLocale | back to summary |
|---|---|
| public void setLocale(final Locale loc) Implements org. Doc from org. Changes the locale of this response. | |
| setReasonPhrase | back to summary |
|---|---|
| public void setReasonPhrase(final String reason) Implements org. Doc from org. Updates the status line of this response with a new reason phrase. | |