|
Apache Tomcat 7.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.coyote.http11.AbstractHttp11Processor
org.apache.coyote.http11.Http11NioProcessor
public class Http11NioProcessor
Processes HTTP requests.
Field Summary | |
---|---|
protected boolean |
async
Async used |
protected boolean |
comet
Comet used. |
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 NioEndpoint |
endpoint
Associated endpoint. |
protected InternalNioInputBuffer |
inputBuffer
Input. |
protected InternalNioOutputBuffer |
outputBuffer
Output. |
protected NioEndpoint.SendfileData |
sendfileData
Sendfile data. |
protected NioChannel |
socket
Socket associated with the current connection. |
protected boolean |
ssl
SSL enabled ? |
protected SSLSupport |
sslSupport
SSL information. |
Fields inherited from class org.apache.coyote.http11.AbstractHttp11Processor |
---|
adapter, compressableMimeTypes, compressionLevel, compressionMinSize, contentDelimitation, disableUploadTimeout, error, expectation, hostNameC, http09, http11, isSecurityEnabled, keepAlive, keepAliveTimeout, localAddr, localName, localPort, maxKeepAliveRequests, maxSavePostSize, noCompressionUserAgents, remoteAddr, remoteHost, remotePort, request, response, restrictedUserAgents, server, sm, socketBuffer, timeout |
Constructor Summary | |
---|---|
Http11NioProcessor(int maxHttpHeaderSize,
NioEndpoint endpoint)
|
Method Summary | |
---|---|
void |
action(ActionCode actionCode,
Object param)
Send an action to the connector. |
AbstractEndpoint.Handler.SocketState |
asyncDispatch(SocketStatus status)
Process pipelined HTTP requests using the specified input and output streams. |
void |
endRequest()
|
AbstractEndpoint.Handler.SocketState |
event(SocketStatus status)
Process pipelined HTTP requests using the specified input and output streams. |
protected int |
findBytes(ByteChunk bc,
byte[] b)
Specialized utility method: find a sequence of lower case bytes inside a ByteChunk. |
protected AbstractInputBuffer |
getInputBuffer()
Exposes input buffer to super class to allow better code re-use. |
protected AbstractOutputBuffer |
getOutputBuffer()
Exposes output buffer to super class to allow better code re-use. |
SSLSupport |
getSslSupport()
|
void |
parseHost(MessageBytes valueMB)
Parse host. |
protected void |
prepareRequest()
After reading the request headers, we have to setup the request filters. |
protected void |
prepareResponse()
When committing the response, we have to validate the set of headers, as well as setup the response filters. |
AbstractEndpoint.Handler.SocketState |
process(NioChannel socket)
Process pipelined HTTP requests using the specified input and output streams. |
void |
recycle()
|
void |
setSslSupport(SSLSupport sslSupport)
Set the SSL information for this HTTP connection. |
protected boolean |
statusDropsConnection(int status)
Determine if we must drop the connection because of the HTTP status code. |
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 comet
protected boolean cometClose
protected boolean async
protected boolean ssl
protected NioChannel socket
protected NioEndpoint endpoint
Constructor Detail |
---|
public Http11NioProcessor(int maxHttpHeaderSize, NioEndpoint endpoint)
Method Detail |
---|
public AbstractEndpoint.Handler.SocketState event(SocketStatus status) throws IOException
IOException
- error during an I/O operationpublic AbstractEndpoint.Handler.SocketState asyncDispatch(SocketStatus status) throws IOException
IOException
- error during an I/O operationpublic AbstractEndpoint.Handler.SocketState process(NioChannel socket) throws IOException
IOException
- error during an I/O operationpublic void endRequest()
public void recycle()
public void action(ActionCode actionCode, Object param)
action
in interface ActionHook
actionCode
- Type of the actionparam
- Action parameterpublic SSLSupport getSslSupport()
protected void prepareRequest()
public void parseHost(MessageBytes valueMB)
protected void prepareResponse() throws IOException
IOException
protected int findBytes(ByteChunk bc, byte[] b)
findBytes
in class AbstractHttp11Processor
protected boolean statusDropsConnection(int status)
statusDropsConnection
in class AbstractHttp11Processor
protected AbstractInputBuffer getInputBuffer()
AbstractHttp11Processor
getInputBuffer
in class AbstractHttp11Processor
protected AbstractOutputBuffer getOutputBuffer()
AbstractHttp11Processor
getOutputBuffer
in class AbstractHttp11Processor
public void setSslSupport(SSLSupport sslSupport)
|
Apache Tomcat 7.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |