org.apache.http.protocol
Class HttpService
java.lang.Object
org.apache.http.protocol.HttpService
- public class HttpService
- extends java.lang.Object
Minimalistic server-side implementation of an HTTP processor.
- Version:
- $Revision: 510645 $
- Author:
- Oleg Kalnichevski
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpService
public HttpService(HttpProcessor proc,
ConnectionReuseStrategy connStrategy,
HttpResponseFactory responseFactory)
- Create a new HTTP service.
- Parameters:
proc
- the processor to use on requests and responsesconnStrategy
- the connection reuse strategyresponseFactory
- the response factory
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 java.io.IOException,
HttpException
- Throws:
java.io.IOException
HttpException
handleException
protected void handleException(HttpException ex,
HttpResponse response)
doService
protected void doService(HttpRequest request,
HttpResponse response,
HttpContext context)
throws HttpException,
java.io.IOException
- Throws:
HttpException
java.io.IOException
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.