| java.lang.Object org.apache.http.message.AbstractHttpMessage org.apache.http.message.BasicHttpResponse
BasicHttpResponse | public class BasicHttpResponse extends AbstractHttpMessage implements HttpResponse(Code) | | Basic implementation of an HTTP response that can be modified.
This implementation makes sure that there always is a status line.
author: Oleg Kalnichevski version: $Revision: 573864 $ since: 4.0 |
BasicHttpResponse | public BasicHttpResponse(StatusLine statusline, ReasonPhraseCatalog catalog, Locale locale)(Code) | | Creates a new response.
This is the constructor to which all others map.
Parameters: statusline - the status line Parameters: catalog - the reason phrase catalog, ornull to disable automaticreason phrase lookup Parameters: locale - the locale for looking up reason phrases, ornull for the system locale |
BasicHttpResponse | public BasicHttpResponse(StatusLine statusline)(Code) | | Creates a response from a status line.
The response will not have a reason phrase catalog and
use the system default locale.
Parameters: statusline - the status line |
BasicHttpResponse | public BasicHttpResponse(ProtocolVersion ver, int code, String reason)(Code) | | Creates a response from elements of a status line.
The response will not have a reason phrase catalog and
use the system default locale.
Parameters: ver - the protocol version of the response Parameters: code - the status code of the response Parameters: reason - the reason phrase to the status code, ornull |
getReason | protected String getReason(int code)(Code) | | Looks up a reason phrase.
This method evaluates the currently set catalog and locale.
It also handles a missing catalog.
Parameters: code - the status code for which to look up the reason the reason phrase, or null if there is none |
setReasonPhrase | public void setReasonPhrase(String reason)(Code) | | |
setStatusCode | public void setStatusCode(int code)(Code) | | |
|
|