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