Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.http.message
Class BasicHttpResponse  view BasicHttpResponse download BasicHttpResponse.java

java.lang.Object
  extended byorg.apache.http.message.AbstractHttpMessage
      extended byorg.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 $

Field Summary
private  org.apache.http.HttpEntity entity
           
private  org.apache.http.StatusLine statusline
           
 
Fields inherited from class org.apache.http.message.AbstractHttpMessage
 
Constructor Summary
BasicHttpResponse()
           
BasicHttpResponse(org.apache.http.StatusLine statusline)
           
 
Method Summary
 org.apache.http.HttpEntity getEntity()
          Returns the response entity of this response as set by
 org.apache.http.HttpVersion getHttpVersion()
          Returns the HTTP version this message is compatible with.
 org.apache.http.StatusLine getStatusLine()
          Returns the status line that belongs to this response as set by
 void setEntity(org.apache.http.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(org.apache.http.StatusLine statusline)
          Sets the status line that belongs to this response.
 
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
 

Field Detail

statusline

private org.apache.http.StatusLine statusline

entity

private org.apache.http.HttpEntity entity
Constructor Detail

BasicHttpResponse

public BasicHttpResponse()

BasicHttpResponse

public BasicHttpResponse(org.apache.http.StatusLine statusline)
Method Detail

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