org.apache.http
Interface HttpResponse

All Superinterfaces:
HttpMessage
All Known Implementing Classes:
BasicHttpResponse

public interface HttpResponse
extends HttpMessage

An HTTP response.

Since:
4.0
Version:
$Revision: 391135 $
Author:
Oleg Kalnichevski

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

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


setStatusLine

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

Parameters:
statusline - the status line of this response.

setStatusCode

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.

Parameters:
code - the HTTP status code.
See Also:
HttpStatus

getEntity

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

Returns:
the response entity or null if there is none.

setEntity

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

Parameters:
entity - the entity to associate with this response.


Copyright 2005-2005-2006 Apache Software Foundation. All Rights Reserved.