FileDocCategorySizeDatePackage
HttpResponseFactory.javaAPI DocAndroid 1.5 API2861Wed May 06 22:41:10 BST 2009org.apache.http

HttpResponseFactory

public interface HttpResponseFactory
A factory for {@link HttpResponse HttpResponse} objects.
author
Oleg Kalnichevski
version
$Revision: 573864 $
since
4.0

Fields Summary
Constructors Summary
Methods Summary
public org.apache.http.HttpResponsenewHttpResponse(org.apache.http.ProtocolVersion ver, int status, org.apache.http.protocol.HttpContext context)
Creates a new response from status line elements.

param
ver the protocol version
param
status the status code
param
context the context from which to determine the locale for looking up a reason phrase to the status code, or null to use the default locale
return
the new response with an initialized status line

public org.apache.http.HttpResponsenewHttpResponse(org.apache.http.StatusLine statusline, org.apache.http.protocol.HttpContext context)
Creates a new response from a status line.

param
statusline the status line
param
context the context from which to determine the locale for looking up a reason phrase if the status code is updated, or null to use the default locale
return
the new response with the argument status line