| 
Apache Tomcat 7.0.28 | ||||||||
| 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<Socket>
org.apache.coyote.http11.Http11Processor
public class Http11Processor
Processes HTTP requests.
| Field Summary | |
|---|---|
protected  InternalInputBuffer | 
inputBuffer
Input.  | 
protected  InternalOutputBuffer | 
outputBuffer
Output.  | 
protected  SocketWrapper<Socket> | 
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, keptAlive, localAddr, localName, localPort, maxKeepAliveRequests, maxSavePostSize, noCompressionUserAgents, openSocket, readComplete, remoteAddr, remoteHost, remotePort, restrictedUserAgents, sendfileInProgress, server, sm, socketBuffer, upgradeInbound | 
| Fields inherited from class org.apache.coyote.AbstractProcessor | 
|---|
adapter, asyncStateMachine, endpoint, request, response | 
| Constructor Summary | |
|---|---|
Http11Processor(int headerBufferSize,
                JIoEndpoint endpoint,
                int maxTrailerSize)
 | 
|
| Method Summary | |
|---|---|
 void | 
actionInternal(ActionCode actionCode,
               Object param)
Send an action to the connector.  | 
protected  boolean | 
breakKeepAliveLoop(SocketWrapper<Socket> socketWrapper)
Checks to see if the keep-alive loop should be broken, performing any processing (e.g. sendfile handling) that may have an impact on whether or not the keep-alive loop should be broken.  | 
protected  boolean | 
disableKeepAlive()
Processors (currently only HTTP BIO) may elect to disable HTTP keep-alive in some circumstances.  | 
 AbstractEndpoint.Handler.SocketState | 
event(SocketStatus status)
Process in-progress Comet requests.  | 
 int | 
getDisableKeepAlivePercentage()
 | 
protected  AbstractInputBuffer<Socket> | 
getInputBuffer()
Exposes input buffer to super class to allow better code re-use.  | 
protected  Log | 
getLog()
 | 
protected  AbstractOutputBuffer<Socket> | 
getOutputBuffer()
Exposes output buffer to super class to allow better code re-use.  | 
protected  boolean | 
handleIncompleteRequestLineRead()
Defines how a connector handles an incomplete request line read.  | 
protected  void | 
prepareRequestInternal()
Connector implementation specific request preparation.  | 
protected  boolean | 
prepareSendfile(OutputFilter[] outputFilters)
 | 
protected  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.  | 
protected  void | 
setCometTimeouts(SocketWrapper<Socket> socketWrapper)
Provides a mechanism for those connectors (currently only NIO) that need that need to set comet timeouts.  | 
 void | 
setDisableKeepAlivePercentage(int disableKeepAlivePercentage)
 | 
protected  void | 
setRequestLineReadTimeout()
Configures the timeout to be used for reading the request line.  | 
 void | 
setSocketBuffer(int socketBuffer)
Set the socket buffer flag.  | 
protected  void | 
setSocketTimeout(int timeout)
Set the socket timeout.  | 
protected  void | 
setSocketWrapper(SocketWrapper<Socket> socketWrapper)
Allows the super class to set the socket wrapper being used.  | 
 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 InternalInputBuffer inputBuffer
protected InternalOutputBuffer outputBuffer
protected SSLSupport sslSupport
protected SocketWrapper<Socket> socket
| Constructor Detail | 
|---|
public Http11Processor(int headerBufferSize,
                       JIoEndpoint endpoint,
                       int maxTrailerSize)
| Method Detail | 
|---|
protected Log getLog()
getLog in class AbstractHttp11Processor<Socket>public void setSslSupport(SSLSupport sslSupport)
public int getDisableKeepAlivePercentage()
public void setDisableKeepAlivePercentage(int disableKeepAlivePercentage)
protected boolean disableKeepAlive()
AbstractHttp11Processor
disableKeepAlive in class AbstractHttp11Processor<Socket>
protected void setRequestLineReadTimeout()
                                  throws IOException
AbstractHttp11Processor
setRequestLineReadTimeout in class AbstractHttp11Processor<Socket>IOExceptionprotected boolean handleIncompleteRequestLineRead()
AbstractHttp11Processor
handleIncompleteRequestLineRead in class AbstractHttp11Processor<Socket>true if the processor should break out of the
         processing loop, otherwise false.
protected void setSocketTimeout(int timeout)
                         throws IOException
AbstractHttp11Processor
setSocketTimeout in class AbstractHttp11Processor<Socket>IOExceptionprotected void setCometTimeouts(SocketWrapper<Socket> socketWrapper)
AbstractHttp11Processor
setCometTimeouts in class AbstractHttp11Processor<Socket>protected boolean breakKeepAliveLoop(SocketWrapper<Socket> socketWrapper)
AbstractHttp11Processor
breakKeepAliveLoop in class AbstractHttp11Processor<Socket>protected void resetTimeouts()
AbstractHttp11Processor
resetTimeouts in class AbstractHttp11Processor<Socket>protected void recycleInternal()
recycleInternal in class AbstractHttp11Processor<Socket>
public AbstractEndpoint.Handler.SocketState event(SocketStatus status)
                                           throws IOException
AbstractProcessor
event in interface Processor<Socket>event in class AbstractProcessor<Socket>IOException
public void actionInternal(ActionCode actionCode,
                           Object param)
actionCode - Type of the actionparam - Action parameterprotected void prepareRequestInternal()
AbstractHttp11Processor
prepareRequestInternal in class AbstractHttp11Processor<Socket>protected boolean prepareSendfile(OutputFilter[] outputFilters)
protected void setSocketWrapper(SocketWrapper<Socket> socketWrapper)
AbstractHttp11Processor
setSocketWrapper in class AbstractHttp11Processor<Socket>protected AbstractInputBuffer<Socket> getInputBuffer()
AbstractHttp11Processor
getInputBuffer in class AbstractHttp11Processor<Socket>protected AbstractOutputBuffer<Socket> getOutputBuffer()
AbstractHttp11Processor
getOutputBuffer in class AbstractHttp11Processor<Socket>public void setSocketBuffer(int socketBuffer)
setSocketBuffer in class AbstractHttp11Processor<Socket>
  | 
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||