Methods Summary |
---|
public org.apache.http.HttpEntity | getEntity()Obtains the message entity of this response, if any.
The entity is provided by calling {@link #setEntity setEntity}.
|
public java.util.Locale | getLocale()Obtains the locale of this response.
The locale is used to determine the reason phrase
for the {@link #setStatusCode status code}.
It can be changed using {@link #setLocale setLocale}.
|
public org.apache.http.StatusLine | getStatusLine()Obtains the status line of this response.
The status line can be set using one of the
{@link #setStatusLine setStatusLine} methods,
or it can be initialized in a constructor.
|
public void | setEntity(org.apache.http.HttpEntity entity)Associates a response entity with this response.
|
public void | setLocale(java.util.Locale loc)Changes the locale of this response.
If there is a status line, it's reason phrase will be updated
according to the status code and new locale.
|
public void | setReasonPhrase(java.lang.String reason)Updates the status line of this response with a new reason phrase.
The status line can only be updated if it is available. It must
have been set either explicitly or in a constructor.
|
public void | setStatusCode(int code)Updates the status line of this response with a new status code.
The status line can only be updated if it is available. It must
have been set either explicitly or in a constructor.
The reason phrase will be updated according to the new status code,
based on the current {@link #getLocale locale}. It can be set
explicitly using {@link #setReasonPhrase setReasonPhrase}.
|
public void | setStatusLine(org.apache.http.StatusLine statusline)Sets the status line of this response.
|
public void | setStatusLine(org.apache.http.ProtocolVersion ver, int code)Sets the status line of this response.
The reason phrase will be determined based on the current
{@link #getLocale locale}.
|
public void | setStatusLine(org.apache.http.ProtocolVersion ver, int code, java.lang.String reason)Sets the status line of this response with a reason phrase.
|