Android

org.apache.http.protocol.HttpService

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

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)
Methods inherited from class java.lang.Object

Details

Public Constructors

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

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

public void handleRequest(HttpServerConnection conn, HttpContext context)

public void setConnReuseStrategy(ConnectionReuseStrategy connStrategy)

public void setExpectationVerifier(HttpExpectationVerifier expectationVerifier)

public void setHandlerResolver(HttpRequestHandlerResolver handlerResolver)

public void setHttpProcessor(HttpProcessor processor)

public void setParams(HttpParams params)

public void setResponseFactory(HttpResponseFactory responseFactory)

Protected Methods

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

protected void handleException(HttpException ex, HttpResponse response)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56