Skip to content

Most visited

Recently visited

navigation

HttpService | Android Developers

to top
Android APIs
public class

HttpService

extends Object
java.lang.Object
   ↳ org.apache.http.protocol.HttpService

Class Overview

Minimalistic server-side implementation of an HTTP processor.

Summary

Public Constructors
HttpService(HttpProcessor proc, ConnectionReuseStrategy connStrategy, HttpResponseFactory responseFactory)
Create a new HTTP service.
Public Methods
HttpParams getParams()
void handleRequest(HttpServerConnection conn, HttpContext context)
void setConnReuseStrategy(ConnectionReuseStrategy connStrategy)
void setExpectationVerifier(HttpExpectationVerifier expectationVerifier)
void setHandlerResolver(HttpRequestHandlerResolver handlerResolver)
void setHttpProcessor(HttpProcessor processor)
void setParams(HttpParams params)
void setResponseFactory(HttpResponseFactory responseFactory)
Protected Methods
void doService(HttpRequest request, HttpResponse response, HttpContext context)
void handleException(HttpException ex, HttpResponse response)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HttpService (HttpProcessor proc, ConnectionReuseStrategy connStrategy, HttpResponseFactory responseFactory)

Added in API level 1

Create a new HTTP service.

Parameters
proc the processor to use on requests and responses
connStrategy the connection reuse strategy
responseFactory the response factory

Public Methods

public HttpParams getParams ()

Added in API level 1

public void handleRequest (HttpServerConnection conn, HttpContext context)

Added in API level 1

public void setConnReuseStrategy (ConnectionReuseStrategy connStrategy)

Added in API level 1

public void setExpectationVerifier (HttpExpectationVerifier expectationVerifier)

Added in API level 1

public void setHandlerResolver (HttpRequestHandlerResolver handlerResolver)

Added in API level 1

public void setHttpProcessor (HttpProcessor processor)

Added in API level 1

public void setParams (HttpParams params)

Added in API level 1

public void setResponseFactory (HttpResponseFactory responseFactory)

Added in API level 1

Protected Methods

protected void doService (HttpRequest request, HttpResponse response, HttpContext context)

Added in API level 1

protected void handleException (HttpException ex, HttpResponse response)

Added in API level 1

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.