Android
org.apache.http
public interface

org.apache.http.HttpResponseFactory

org.apache.http.HttpResponseFactory

A factory for HttpResponse objects.

Summary

Public Methods

          HttpResponse  newHttpResponse(ProtocolVersion ver, int status, HttpContext context)
Creates a new response from status line elements.
          HttpResponse  newHttpResponse(StatusLine statusline, HttpContext context)
Creates a new response from a status line.

Details

Public Methods

public HttpResponse newHttpResponse(ProtocolVersion ver, int status, HttpContext context)

Creates a new response from status line elements.

Parameters

ver the protocol version
status the status code
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

Returns

  • the new response with an initialized status line

public HttpResponse newHttpResponse(StatusLine statusline, HttpContext context)

Creates a new response from a status line.

Parameters

statusline the status line
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

Returns

  • the new response with the argument status line
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56