| org.apache.http.HttpResponse
All known Subclasses: org.apache.http.message.BasicHttpResponse,
getEntity | HttpEntity getEntity()(Code) | | Obtains the message entity of this response, if any.
The entity is provided by calling
HttpResponse.setEntity setEntity .
the response entity, ornull if there is none |
getStatusLine | StatusLine getStatusLine()(Code) | | Obtains the status line of this response.
The status line can be set using on of the
HttpResponse.setStatusLine setStatusLine methods,
or it can be initialized in a constructor.
the status line, or null if not yet set |
setEntity | void setEntity(HttpEntity entity)(Code) | | Associates a response entity with this response.
Parameters: entity - the entity to associate with this response, ornull to unset |
setLocale | void setLocale(Locale loc)(Code) | | 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.
Parameters: loc - the new locale See Also: HttpResponse.getLocale See Also: getLocale See Also: HttpResponse.setStatusCode See Also: setStatusCode |
setStatusLine | void setStatusLine(StatusLine statusline)(Code) | | Sets the status line of this response.
Parameters: statusline - the status line of this response |
setStatusLine | void setStatusLine(ProtocolVersion ver, int code)(Code) | | Sets the status line of this response.
The reason phrase will be determined based on the current
HttpResponse.getLocale locale .
Parameters: ver - the HTTP version Parameters: code - the status code |
setStatusLine | void setStatusLine(ProtocolVersion ver, int code, String reason)(Code) | | Sets the status line of this response with a reason phrase.
Parameters: ver - the HTTP version Parameters: code - the status code Parameters: reason - the reason phrase, or null to omit |
|
|