Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public interface

HttpResponseFactory

org.apache.http.HttpResponseFactory
Known Indirect Subclasses

Class Overview

A factory for HttpResponse objects.

Summary

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

Public Methods

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

Added in API level 1

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 abstract HttpResponse newHttpResponse ( StatusLine statusline, HttpContext context)

Added in API level 1

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