Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.http.protocol
Class HttpService  view HttpService download HttpService.java

java.lang.Object
  extended byorg.apache.http.protocol.AbstractHttpProcessor
      extended byorg.apache.http.protocol.HttpService

public class HttpService
extends AbstractHttpProcessor

Minimalistic server-side implementation of an HTTP processor.

Version:
$Revision: 408098 $

Field Summary
private  org.apache.http.HttpServerConnection conn
           
private  org.apache.http.ConnectionReuseStrategy connStrategy
           
private  HttpContext context
           
private  boolean destroyed
           
private  org.apache.http.params.HttpParams params
           
 
Fields inherited from class org.apache.http.protocol.AbstractHttpProcessor
 
Constructor Summary
HttpService(org.apache.http.HttpServerConnection conn)
           
 
Method Summary
protected  void closeConnection()
           
 void destroy()
           
protected  void doService(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response)
           
 org.apache.http.params.HttpParams getParams()
           
protected  void handleException(org.apache.http.HttpException ex, org.apache.http.HttpResponse response)
           
 void handleRequest()
           
 boolean isActive()
           
 boolean isDestroyed()
           
protected  void logIOException(java.io.IOException ex)
           
protected  void logMessage(java.lang.String s)
           
protected  void logProtocolException(org.apache.http.HttpException ex)
           
 void setParams(org.apache.http.params.HttpParams params)
           
 
Methods inherited from class org.apache.http.protocol.AbstractHttpProcessor
addInterceptor, addInterceptor, clearInterceptors, postprocessResponse, preprocessRequest, removeInterceptor, removeInterceptor, removeInterceptors, setInterceptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conn

private final org.apache.http.HttpServerConnection conn

connStrategy

private final org.apache.http.ConnectionReuseStrategy connStrategy

context

private final HttpContext context

destroyed

private volatile boolean destroyed

params

private org.apache.http.params.HttpParams params
Constructor Detail

HttpService

public HttpService(org.apache.http.HttpServerConnection conn)
Method Detail

getParams

public org.apache.http.params.HttpParams getParams()

setParams

public void setParams(org.apache.http.params.HttpParams params)

isActive

public boolean isActive()

closeConnection

protected void closeConnection()

handleRequest

public void handleRequest()

handleException

protected void handleException(org.apache.http.HttpException ex,
                               org.apache.http.HttpResponse response)

doService

protected void doService(org.apache.http.HttpRequest request,
                         org.apache.http.HttpResponse response)
                  throws org.apache.http.HttpException,
                         java.io.IOException

logMessage

protected void logMessage(java.lang.String s)

logIOException

protected void logIOException(java.io.IOException ex)

logProtocolException

protected void logProtocolException(org.apache.http.HttpException ex)

destroy

public void destroy()

isDestroyed

public boolean isDestroyed()