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)

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)