org.apache.http.nio.protocol
Class NHttpHandlerBase

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

public abstract class NHttpHandlerBase
extends Object

Since:
4.0

Field Summary
protected  ByteBufferAllocator allocator
           
protected static 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(NHttpConnection conn, Throwable cause)
           
 HttpParams getParams()
           
protected  void handleTimeout(NHttpConnection conn)
           
 void setEventListener(EventListener eventListener)
           
protected  void shutdownConnection(NHttpConnection conn, 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 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(NHttpConnection conn,
                               Throwable cause)

shutdownConnection

protected void shutdownConnection(NHttpConnection conn,
                                  Throwable cause)

handleTimeout

protected void handleTimeout(NHttpConnection conn)

canResponseHaveBody

protected boolean canResponseHaveBody(HttpRequest request,
                                      HttpResponse response)


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.