org.apache.http.nio.protocol
Class NHttpServiceHandlerBase
java.lang.Object
org.apache.http.nio.protocol.NHttpHandlerBase
org.apache.http.nio.protocol.NHttpServiceHandlerBase
- All Implemented Interfaces:
- NHttpServiceHandler
- Direct Known Subclasses:
- BufferingHttpServiceHandler, ThrottlingHttpServiceHandler
public abstract class NHttpServiceHandlerBase
- extends NHttpHandlerBase
- implements NHttpServiceHandler
Constructor Summary |
NHttpServiceHandlerBase(org.apache.http.protocol.HttpProcessor httpProcessor,
org.apache.http.HttpResponseFactory responseFactory,
org.apache.http.ConnectionReuseStrategy connStrategy,
ByteBufferAllocator allocator,
org.apache.http.params.HttpParams params)
|
NHttpServiceHandlerBase(org.apache.http.protocol.HttpProcessor httpProcessor,
org.apache.http.HttpResponseFactory responseFactory,
org.apache.http.ConnectionReuseStrategy connStrategy,
org.apache.http.params.HttpParams params)
|
Method Summary |
void |
exception(NHttpServerConnection conn,
java.io.IOException ex)
Triggered when an I/O error occurrs while reading from or writing
to the underlying channel. |
void |
setExpectationVerifier(org.apache.http.protocol.HttpExpectationVerifier expectationVerifier)
|
void |
setHandlerResolver(org.apache.http.protocol.HttpRequestHandlerResolver handlerResolver)
|
void |
timeout(NHttpServerConnection conn)
Triggered when no input is detected on this connection over the
maximum period of inactivity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
responseFactory
protected final org.apache.http.HttpResponseFactory responseFactory
handlerResolver
protected org.apache.http.protocol.HttpRequestHandlerResolver handlerResolver
expectationVerifier
protected org.apache.http.protocol.HttpExpectationVerifier expectationVerifier
NHttpServiceHandlerBase
public NHttpServiceHandlerBase(org.apache.http.protocol.HttpProcessor httpProcessor,
org.apache.http.HttpResponseFactory responseFactory,
org.apache.http.ConnectionReuseStrategy connStrategy,
ByteBufferAllocator allocator,
org.apache.http.params.HttpParams params)
NHttpServiceHandlerBase
public NHttpServiceHandlerBase(org.apache.http.protocol.HttpProcessor httpProcessor,
org.apache.http.HttpResponseFactory responseFactory,
org.apache.http.ConnectionReuseStrategy connStrategy,
org.apache.http.params.HttpParams params)
setHandlerResolver
public void setHandlerResolver(org.apache.http.protocol.HttpRequestHandlerResolver handlerResolver)
setExpectationVerifier
public void setExpectationVerifier(org.apache.http.protocol.HttpExpectationVerifier expectationVerifier)
exception
public void exception(NHttpServerConnection conn,
java.io.IOException ex)
- Description copied from interface:
NHttpServiceHandler
- Triggered when an I/O error occurrs while reading from or writing
to the underlying channel.
- Specified by:
exception
in interface NHttpServiceHandler
- Parameters:
conn
- HTTP connection that caused an I/O errorex
- I/O exception
timeout
public void timeout(NHttpServerConnection conn)
- Description copied from interface:
NHttpServiceHandler
- Triggered when no input is detected on this connection over the
maximum period of inactivity.
- Specified by:
timeout
in interface NHttpServiceHandler
- Parameters:
conn
- HTTP connection that caused timeout condition.
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.