public abstract class

NHttpHandlerBase

extends Object
java.lang.Object
   ↳ org.apache.http.nio.protocol.NHttpHandlerBase
Known Direct Subclasses

Summary

Constants
String CONN_STATE
Fields
protected final ByteBufferAllocator allocator
protected final ConnectionReuseStrategy connStrategy
protected EventListener eventListener
protected final HttpProcessor httpProcessor
protected final HttpParams params
Public Constructors
NHttpHandlerBase(HttpProcessor httpProcessor, ConnectionReuseStrategy connStrategy, ByteBufferAllocator allocator, HttpParams params)
Public Methods
HttpParams getParams()
void setEventListener(EventListener eventListener)
Protected Methods
boolean canResponseHaveBody(HttpRequest request, HttpResponse response)
void closeConnection(NHttpConnection conn, Throwable cause)
void handleTimeout(NHttpConnection conn)
void shutdownConnection(NHttpConnection conn, Throwable cause)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

protected static final String CONN_STATE

Constant Value: "http.nio.conn-state"

Fields

protected final ByteBufferAllocator allocator

protected final ConnectionReuseStrategy connStrategy

protected EventListener eventListener

protected final HttpProcessor httpProcessor

protected final HttpParams params

Public Constructors

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

Public Methods

public HttpParams getParams ()

public void setEventListener (EventListener eventListener)

Protected Methods

protected boolean canResponseHaveBody (HttpRequest request, HttpResponse response)

protected void closeConnection (NHttpConnection conn, Throwable cause)

protected void handleTimeout (NHttpConnection conn)

protected void shutdownConnection (NHttpConnection conn, Throwable cause)