org.apache.http.HttpResponse | HttpMessage |
HttpEntity | getEntity() | |||||
Obtains the message entity of this response, if any. | ||||||
Locale | getLocale() | |||||
Obtains the locale of this response. | ||||||
StatusLine | getStatusLine() | |||||
Obtains the status line of this response. | ||||||
void | setEntity(HttpEntity entity) | |||||
Associates a response entity with this response. | ||||||
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. | ||||||
void | setStatusCode(int code) | |||||
Updates the status line of this response with a new status code. | ||||||
void | setStatusLine(ProtocolVersion ver, int code) | |||||
Sets the status line of this response. | ||||||
void | setStatusLine(StatusLine statusline) | |||||
Sets the status line of this response. | ||||||
void | setStatusLine(ProtocolVersion ver, int code, String reason) | |||||
Sets the status line of this response with a reason phrase. |
null
if there is none
null
null
if not yet set
entity | the entity to associate with this response, or
null to unset
|
---|
loc | the new locale |
---|
reason | the new reason phrase as a single-line string, or
null to unset the reason phrase |
---|
IllegalStateException | if the status line has not be set |
---|
code | the HTTP status code. |
---|
IllegalStateException | if the status line has not be set |
---|
ver | the HTTP version |
---|---|
code | the status code |
statusline | the status line of this response |
---|
ver | the HTTP version |
---|---|
code | the status code |
reason | the reason phrase, or null to omit
|
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:56 |