Build 1.0_r1(from source)

org.apache.http.protocol
Class HttpService

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

public class HttpService
extends Object

Minimalistic server-side implementation of an HTTP processor.


Constructor Summary
HttpService(HttpProcessor proc, ConnectionReuseStrategy connStrategy, HttpResponseFactory responseFactory)
          Create a new HTTP service.
 
Method Summary
protected  void doService(HttpRequest request, HttpResponse response, HttpContext context)
           
 HttpParams getParams()
           
protected  void handleException(HttpException ex, HttpResponse response)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpService

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
Method Detail

setHttpProcessor

public void setHttpProcessor(HttpProcessor processor)

setConnReuseStrategy

public void setConnReuseStrategy(ConnectionReuseStrategy connStrategy)

setResponseFactory

public void setResponseFactory(HttpResponseFactory responseFactory)

setHandlerResolver

public void setHandlerResolver(HttpRequestHandlerResolver handlerResolver)

setExpectationVerifier

public void setExpectationVerifier(HttpExpectationVerifier expectationVerifier)

getParams

public HttpParams getParams()

setParams

public void setParams(HttpParams params)

handleRequest

public void handleRequest(HttpServerConnection conn,
                          HttpContext context)
                   throws IOException,
                          HttpException
Throws:
IOException
HttpException

handleException

protected void handleException(HttpException ex,
                               HttpResponse response)

doService

protected void doService(HttpRequest request,
                         HttpResponse response,
                         HttpContext context)
                  throws HttpException,
                         IOException
Throws:
HttpException
IOException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature