org.apache.http.nio.protocol
Class NHttpHandlerBase

java.lang.Object
  extended by org.apache.http.nio.protocol.NHttpHandlerBase
Direct Known Subclasses:
NHttpClientHandlerBase, NHttpServiceHandlerBase

public abstract class NHttpHandlerBase
extends java.lang.Object


Field Summary
protected  ByteBufferAllocator allocator
           
protected static java.lang.String CONN_STATE
           
protected  ConnectionReuseStrategy connStrategy
           
protected  EventListener eventListener
           
protected  HttpProcessor httpProcessor
           
protected  HttpParams params
           
 
Constructor Summary
NHttpHandlerBase(HttpProcessor httpProcessor, ConnectionReuseStrategy connStrategy, ByteBufferAllocator allocator, HttpParams params)
           
 
Method Summary
protected  boolean canResponseHaveBody(HttpRequest request, HttpResponse response)
           
protected  void closeConnection(HttpConnection conn, java.lang.Throwable cause)
           
 HttpParams getParams()
           
 void setEventListener(EventListener eventListener)
           
protected  void shutdownConnection(HttpConnection conn, java.lang.Throwable cause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONN_STATE

protected static final java.lang.String CONN_STATE
See Also:
Constant Field Values

httpProcessor

protected final HttpProcessor httpProcessor

connStrategy

protected final ConnectionReuseStrategy connStrategy

allocator

protected final ByteBufferAllocator allocator

params

protected final HttpParams params

eventListener

protected EventListener eventListener
Constructor Detail

NHttpHandlerBase

public NHttpHandlerBase(HttpProcessor httpProcessor,
                        ConnectionReuseStrategy connStrategy,
                        ByteBufferAllocator allocator,
                        HttpParams params)
Method Detail

getParams

public HttpParams getParams()

setEventListener

public void setEventListener(EventListener eventListener)

closeConnection

protected void closeConnection(HttpConnection conn,
                               java.lang.Throwable cause)

shutdownConnection

protected void shutdownConnection(HttpConnection conn,
                                  java.lang.Throwable cause)

canResponseHaveBody

protected boolean canResponseHaveBody(HttpRequest request,
                                      HttpResponse response)


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.