public interface HttpResponse extends HttpMessage
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Obtains the code of this response message.
|
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(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, setVersioncontainsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIteratorint getCode()
void setCode(int code)
code - the HTTP status code.HttpStatusString getReasonPhrase()
void setReasonPhrase(String reason)
reason - the new reason phrase as a single-line string, or
null to unset the reason phraseLocale getLocale()
status code.
It can be changed using setLocale.nullvoid setLocale(Locale loc)
loc - the new localeCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.