|
Apache Tomcat 7.0.25 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.coyote.AbstractProcessor<S>
public abstract class AbstractProcessor<S>
Provides functionality and attributes common to all supported protocols (currently HTTP and AJP).
| Field Summary | |
|---|---|
protected Adapter |
adapter
|
protected AsyncStateMachine |
asyncStateMachine
|
protected AbstractEndpoint |
endpoint
|
protected Request |
request
|
protected Response |
response
|
| Constructor Summary | |
|---|---|
AbstractProcessor(AbstractEndpoint endpoint)
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.coyote.ActionHook |
|---|
action |
| Field Detail |
|---|
protected Adapter adapter
protected final AsyncStateMachine asyncStateMachine
protected final AbstractEndpoint endpoint
protected final Request request
protected final Response response
| Constructor Detail |
|---|
public AbstractProcessor(AbstractEndpoint endpoint)
| Method Detail |
|---|
protected AbstractEndpoint getEndpoint()
public Request getRequest()
public void setAdapter(Adapter adapter)
adapter - the new adapterpublic Adapter getAdapter()
public 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 IOException
IOException
public abstract AbstractEndpoint.Handler.SocketState event(SocketStatus status)
throws IOException
IOExceptionpublic abstract AbstractEndpoint.Handler.SocketState asyncDispatch(SocketStatus status)
|
Apache Tomcat 7.0.25 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||