|
Apache Tomcat 7.0.20 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.coyote.AbstractProcessor<S>
org.apache.coyote.http11.AbstractHttp11Processor<NioChannel>
org.apache.coyote.http11.Http11NioProcessor
public class Http11NioProcessor
Processes HTTP requests.
| Field Summary | |
|---|---|
protected boolean |
cometClose
Closed flag, a Comet async thread can signal for this Nio processor to be closed and recycled instead of waiting for a timeout. |
protected InternalNioInputBuffer |
inputBuffer
Input. |
protected InternalNioOutputBuffer |
outputBuffer
Output. |
protected NioEndpoint.SendfileData |
sendfileData
Sendfile data. |
protected SocketWrapper<NioChannel> |
socket
Socket associated with the current connection. |
protected SSLSupport |
sslSupport
SSL information. |
| Fields inherited from class org.apache.coyote.http11.AbstractHttp11Processor |
|---|
comet, compressableMimeTypes, compressionLevel, compressionMinSize, connectionUploadTimeout, contentDelimitation, disableUploadTimeout, error, expectation, hostNameC, http09, http11, keepAlive, keepAliveTimeout, localAddr, localName, localPort, maxKeepAliveRequests, maxSavePostSize, noCompressionUserAgents, remoteAddr, remoteHost, remotePort, restrictedUserAgents, server, sm, socketBuffer |
| Fields inherited from class org.apache.coyote.AbstractProcessor |
|---|
adapter, asyncStateMachine, endpoint, request, response |
| Constructor Summary | |
|---|---|
Http11NioProcessor(int maxHttpHeaderSize,
NioEndpoint endpoint,
int maxTrailerSize)
|
|
| Method Summary | |
|---|---|
void |
actionInternal(ActionCode actionCode,
Object param)
Send an action to the connector. |
AbstractEndpoint.Handler.SocketState |
event(SocketStatus status)
Process pipelined HTTP requests using the specified input and output streams. |
protected AbstractInputBuffer |
getInputBuffer()
Exposes input buffer to super class to allow better code re-use. |
protected Log |
getLog()
|
protected AbstractOutputBuffer |
getOutputBuffer()
Exposes output buffer to super class to allow better code re-use. |
protected void |
prepareRequestInternal()
Connector implementation specific request preparation. |
protected boolean |
prepareSendfile(OutputFilter[] outputFilters)
|
AbstractEndpoint.Handler.SocketState |
process(SocketWrapper<NioChannel> socketWrapper)
Process pipelined HTTP requests using the specified input and output streams. |
void |
recycleInternal()
|
protected void |
resetTimeouts()
Provides a mechanism for those connector implementations (currently only NIO) that need to reset timeouts from Async timeouts to standard HTTP timeouts once async processing completes. |
void |
setSslSupport(SSLSupport sslSupport)
Set the SSL information for this HTTP connection. |
| Methods inherited from class org.apache.coyote.AbstractProcessor |
|---|
asyncPostProcess, getAdapter, getEndpoint, getExecutor, getRequest, isAsync, setAdapter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SSLSupport sslSupport
protected InternalNioInputBuffer inputBuffer
protected InternalNioOutputBuffer outputBuffer
protected NioEndpoint.SendfileData sendfileData
protected boolean cometClose
protected SocketWrapper<NioChannel> socket
| Constructor Detail |
|---|
public Http11NioProcessor(int maxHttpHeaderSize,
NioEndpoint endpoint,
int maxTrailerSize)
| Method Detail |
|---|
protected Log getLog()
getLog in class AbstractHttp11Processor<NioChannel>
public AbstractEndpoint.Handler.SocketState event(SocketStatus status)
throws IOException
event in class AbstractProcessor<NioChannel>IOException - error during an I/O operationprotected void resetTimeouts()
AbstractHttp11Processor
resetTimeouts in class AbstractHttp11Processor<NioChannel>
public AbstractEndpoint.Handler.SocketState process(SocketWrapper<NioChannel> socketWrapper)
throws IOException
process in class AbstractProcessor<NioChannel>socketWrapper - Socket from which the HTTP requests will be read
and the HTTP responses will be written.
IOException - error during an I/O operationpublic void recycleInternal()
recycleInternal in class AbstractHttp11Processor<NioChannel>
public void actionInternal(ActionCode actionCode,
Object param)
actionCode - Type of the actionparam - Action parameterprotected void prepareRequestInternal()
AbstractHttp11Processor
prepareRequestInternal in class AbstractHttp11Processor<NioChannel>protected boolean prepareSendfile(OutputFilter[] outputFilters)
protected AbstractInputBuffer getInputBuffer()
AbstractHttp11Processor
getInputBuffer in class AbstractHttp11Processor<NioChannel>protected AbstractOutputBuffer getOutputBuffer()
AbstractHttp11Processor
getOutputBuffer in class AbstractHttp11Processor<NioChannel>public void setSslSupport(SSLSupport sslSupport)
|
Apache Tomcat 7.0.20 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||