java.lang.Object
org.apache.http.message.AbstractHttpMessage
org.apache.http.message.BasicHttpResponse
- All Implemented Interfaces:
- org.apache.http.HttpMessage, org.apache.http.HttpResponse
- public class BasicHttpResponse
- extends AbstractHttpMessage
- implements org.apache.http.HttpResponse
Basic implementation of an HTTP response that can be modified.
- Since:
- 4.0
- Version:
- $Revision: 385789 $
| Methods inherited from class org.apache.http.message.AbstractHttpMessage |
addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, removeHeader, removeHeaders, setHeader, setParams |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.http.HttpMessage |
addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, removeHeader, removeHeaders, setHeader, setParams |
statusline
private org.apache.http.StatusLine statusline
entity
private org.apache.http.HttpEntity entity
BasicHttpResponse
public BasicHttpResponse()
BasicHttpResponse
public BasicHttpResponse(org.apache.http.StatusLine statusline)
getHttpVersion
public org.apache.http.HttpVersion getHttpVersion()
- Description copied from interface:
org.apache.http.HttpMessage
- Returns the HTTP version this message is compatible with.
- Specified by:
getHttpVersion in interface org.apache.http.HttpMessage
getStatusLine
public org.apache.http.StatusLine getStatusLine()
- Description copied from interface:
org.apache.http.HttpResponse
- Returns the status line that belongs to this response as set by
- Specified by:
getStatusLine in interface org.apache.http.HttpResponse
getEntity
public org.apache.http.HttpEntity getEntity()
- Description copied from interface:
org.apache.http.HttpResponse
- Returns the response entity of this response as set by
- Specified by:
getEntity in interface org.apache.http.HttpResponse
setStatusLine
public void setStatusLine(org.apache.http.StatusLine statusline)
- Description copied from interface:
org.apache.http.HttpResponse
- Sets the status line that belongs to this response.
- Specified by:
setStatusLine in interface org.apache.http.HttpResponse
setStatusCode
public void setStatusCode(int code)
- Description copied from interface:
org.apache.http.HttpResponse
- Convenience method that creates and sets a new status line of this
response that is initialized with the specified status code.
- Specified by:
setStatusCode in interface org.apache.http.HttpResponse
setEntity
public void setEntity(org.apache.http.HttpEntity entity)
- Description copied from interface:
org.apache.http.HttpResponse
- Associates a response entity with this response.
- Specified by:
setEntity in interface org.apache.http.HttpResponse