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  org.apache.http.ConnectionReuseStrategy connStrategy
           
protected  EventListener eventListener
           
protected  org.apache.http.protocol.HttpProcessor httpProcessor
           
protected  org.apache.http.params.HttpParams params
           
 
Constructor Summary
NHttpHandlerBase(org.apache.http.protocol.HttpProcessor httpProcessor, org.apache.http.ConnectionReuseStrategy connStrategy, ByteBufferAllocator allocator, org.apache.http.params.HttpParams params)
           
 
Method Summary
protected  boolean canResponseHaveBody(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response)
           
protected  void closeConnection(org.apache.http.HttpConnection conn, java.lang.Throwable cause)
           
 org.apache.http.params.HttpParams getParams()
           
protected  void handleTimeout(NHttpConnection conn)
           
 void setEventListener(EventListener eventListener)
           
protected  void shutdownConnection(org.apache.http.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 org.apache.http.protocol.HttpProcessor httpProcessor

connStrategy

protected final org.apache.http.ConnectionReuseStrategy connStrategy

allocator

protected final ByteBufferAllocator allocator

params

protected final org.apache.http.params.HttpParams params

eventListener

protected EventListener eventListener
Constructor Detail

NHttpHandlerBase

public NHttpHandlerBase(org.apache.http.protocol.HttpProcessor httpProcessor,
                        org.apache.http.ConnectionReuseStrategy connStrategy,
                        ByteBufferAllocator allocator,
                        org.apache.http.params.HttpParams params)
Method Detail

getParams

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

setEventListener

public void setEventListener(EventListener eventListener)

closeConnection

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

shutdownConnection

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

handleTimeout

protected void handleTimeout(NHttpConnection conn)

canResponseHaveBody

protected boolean canResponseHaveBody(org.apache.http.HttpRequest request,
                                      org.apache.http.HttpResponse response)


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