public abstract class AbstractProcessor<S> extends java.lang.Object implements ActionHook, Processor
| Modifier and Type | Field and Description |
|---|---|
protected Adapter |
adapter |
protected AsyncStateMachine |
asyncStateMachine |
protected AbstractEndpoint |
endpoint |
protected Request |
request |
protected Response |
response |
| Constructor and Description |
|---|
AbstractProcessor(AbstractEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
abstract AbstractEndpoint.Handler.SocketState |
asyncDispatch(SocketStatus status)
Process in-progress Servlet 3.0 Async requests.
|
AbstractEndpoint.Handler.SocketState |
asyncPostProcess() |
abstract AbstractEndpoint.Handler.SocketState |
event(SocketStatus status)
Process in-progress Comet requests.
|
Adapter |
getAdapter()
Get the associated adapter.
|
protected AbstractEndpoint |
getEndpoint()
The endpoint receiving connections that are handled by this processor.
|
java.util.concurrent.Executor |
getExecutor()
Obtain the Executor used by the underlying endpoint.
|
Request |
getRequest()
The request associated with this processor.
|
boolean |
isAsync() |
protected abstract boolean |
isComet() |
abstract AbstractEndpoint.Handler.SocketState |
process(SocketWrapper<S> socket)
Process HTTP requests.
|
void |
setAdapter(Adapter adapter)
Set the associated adapter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactionprotected Adapter adapter
protected final AsyncStateMachine asyncStateMachine
protected final AbstractEndpoint endpoint
protected final Request request
protected final Response response
public AbstractProcessor(AbstractEndpoint endpoint)
protected AbstractEndpoint getEndpoint()
public Request getRequest()
public void setAdapter(Adapter adapter)
adapter - the new adapterpublic Adapter getAdapter()
public java.util.concurrent.Executor getExecutor()
getExecutor in interface Processorpublic boolean isAsync()
public AbstractEndpoint.Handler.SocketState asyncPostProcess()
protected abstract boolean isComet()
public abstract AbstractEndpoint.Handler.SocketState process(SocketWrapper<S> socket) throws java.io.IOException
java.io.IOExceptionpublic abstract AbstractEndpoint.Handler.SocketState event(SocketStatus status) throws java.io.IOException
java.io.IOExceptionpublic abstract AbstractEndpoint.Handler.SocketState asyncDispatch(SocketStatus status)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.