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

Quick Search    Search Deep

org.apache.http
Interface HttpResponse  view HttpResponse download HttpResponse.java

All Superinterfaces:
HttpMessage

public interface HttpResponse
extends HttpMessage

An HTTP response.

Since:
4.0
Version:
$Revision: 391135 $

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

getStatusLine

public StatusLine getStatusLine()
Returns the status line that belongs to this response as set by


setStatusLine

public void setStatusLine(StatusLine statusline)
Sets the status line that belongs to this response.


setStatusCode

public 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.


getEntity

public HttpEntity getEntity()
Returns the response entity of this response as set by


setEntity

public void setEntity(HttpEntity entity)
Associates a response entity with this response.