public interface HttpResponse extends HttpMessage
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Obtains the code of this response message.
|
java.util.Locale |
getLocale()
Obtains the locale of this response.
|
String |
getReasonPhrase()
Obtains the reason phrase of this response if available.
|
void |
setCode(int code)
Updates status code of this response message.
|
void |
setLocale(java.util.Locale loc)
Changes the locale of this response.
|
void |
setReasonPhrase(String reason)
Updates the status line of this response with a new reason phrase.
|
addHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersion
containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator
int getCode()
java.util.Locale getLocale()
status code
.
It can be changed using setLocale
.null
String getReasonPhrase()
void setCode(int code)
code
- the HTTP status code.HttpStatus
void setLocale(java.util.Locale loc)
loc
- the new localevoid setReasonPhrase(String reason)
reason
- the new reason phrase as a single-line string, or
null
to unset the reason phrase