|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpResponse
An HTTP response.
Method Summary | |
---|---|
HttpEntity |
getEntity()
Returns the response entity of this response as set by |
StatusLine |
getStatusLine()
Returns the status line that belongs to this response as set by |
void |
setEntity(HttpEntity entity)
Associates a response entity with this response. |
void |
setStatusCode(int code)
Convenience method that creates and sets a new status line of this response that is initialized with the specified status code. |
void |
setStatusLine(StatusLine statusline)
Sets the status line that belongs to this response. |
Methods inherited from interface org.apache.http.HttpMessage |
---|
addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getHttpVersion, getLastHeader, getParams, headerIterator, removeHeader, removeHeaders, setHeader, setParams |
Method Detail |
---|
StatusLine getStatusLine()
void setStatusLine(StatusLine statusline)
statusline
- the status line of this response.void setStatusCode(int code)
code
- the HTTP status code.HttpStatus
HttpEntity getEntity()
null
if there is none.void setEntity(HttpEntity entity)
entity
- the entity to associate with this response.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |