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)

Since: 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 ()

Since: API Level 1

public void handleRequest (HttpServerConnection conn, HttpContext context)

Since: API Level 1

public void setConnReuseStrategy (ConnectionReuseStrategy connStrategy)

Since: API Level 1

public void setExpectationVerifier (HttpExpectationVerifier expectationVerifier)

Since: API Level 1

public void setHandlerResolver (HttpRequestHandlerResolver handlerResolver)

Since: API Level 1

public void setHttpProcessor (HttpProcessor processor)

Since: API Level 1

public void setParams (HttpParams params)

Since: API Level 1

public void setResponseFactory (HttpResponseFactory responseFactory)

Since: API Level 1

Protected Methods

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

Since: API Level 1

protected void handleException (HttpException ex, HttpResponse response)

Since: API Level 1