org.apache.http.nio.protocol
Class NHttpHandlerBase
java.lang.Object
org.apache.http.nio.protocol.NHttpHandlerBase
- Direct Known Subclasses:
- AsyncNHttpClientHandler, AsyncNHttpServiceHandler, NHttpClientHandlerBase, NHttpServiceHandlerBase, ThrottlingHttpClientHandler, ThrottlingHttpServiceHandler
public abstract class NHttpHandlerBase
- extends Object
- Since:
- 4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
NHttpHandlerBase
public NHttpHandlerBase(HttpProcessor httpProcessor,
ConnectionReuseStrategy connStrategy,
ByteBufferAllocator allocator,
HttpParams params)
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.