public class Http11NioProcessor extends AbstractHttp11Processor<NioChannel>
Modifier and Type | Field and Description |
---|---|
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.
|
comet, compressableMimeTypes, compressionLevel, compressionMinSize, connectionUploadTimeout, contentDelimitation, disableUploadTimeout, error, expectation, hostNameC, http09, http11, httpUpgradeHandler, keepAlive, keepAliveTimeout, keptAlive, localAddr, localName, localPort, maxKeepAliveRequests, maxSavePostSize, noCompressionUserAgents, openSocket, readComplete, remoteAddr, remoteHost, remotePort, restrictedUserAgents, sendfileInProgress, server, sm, socketBuffer, upgradeInbound
adapter, asyncStateMachine, endpoint, request, response
Constructor and Description |
---|
Http11NioProcessor(int maxHttpHeaderSize,
NioEndpoint endpoint,
int maxTrailerSize,
int maxExtensionSize) |
Modifier and Type | Method and Description |
---|---|
void |
actionInternal(ActionCode actionCode,
Object param)
Send an action to the connector.
|
protected boolean |
breakKeepAliveLoop(SocketWrapper<NioChannel> 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 pipelined HTTP requests using the specified input and output
streams.
|
protected AbstractInputBuffer<NioChannel> |
getInputBuffer()
Exposes input buffer to super class to allow better code re-use.
|
protected Log |
getLog() |
protected AbstractOutputBuffer<NioChannel> |
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) |
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<NioChannel> socketWrapper)
Provides a mechanism for those connectors (currently only NIO) that need
that need to set comet timeouts.
|
protected void |
setRequestLineReadTimeout()
Configures the timeout to be used for reading the request line.
|
protected void |
setSocketTimeout(int timeout)
Set the socket timeout.
|
protected void |
setSocketWrapper(SocketWrapper<NioChannel> socketWrapper)
Allows the super class to set the socket wrapper being used.
|
void |
setSslSupport(SSLSupport sslSupport)
Set the SSL information for this HTTP connection.
|
action, addCompressableMimeType, addInputFilter, asyncDispatch, endRequest, findBytes, getCompression, getConnectionUploadTimeout, getDisableUploadTimeout, getHttpUpgradeHandler, getKeepAliveTimeout, getMaxKeepAliveRequests, getMaxSavePostSize, getServer, getSocketBuffer, getUpgradeInbound, initializeFilters, isComet, isUpgrade, parseHost, prepareRequest, process, recycle, setCompressableMimeTypes, setCompressableMimeTypes, setCompression, setCompressionMinSize, setConnectionUploadTimeout, setDisableUploadTimeout, setKeepAliveTimeout, setMaxKeepAliveRequests, setMaxSavePostSize, setNoCompressionUserAgents, setRestrictedUserAgents, setServer, setSocketBuffer, statusDropsConnection, upgradeDispatch, upgradeDispatch
asyncPostProcess, getAdapter, getEndpoint, getExecutor, getRequest, isAsync, setAdapter
protected SSLSupport sslSupport
protected InternalNioInputBuffer inputBuffer
protected InternalNioOutputBuffer outputBuffer
protected NioEndpoint.SendfileData sendfileData
protected SocketWrapper<NioChannel> socket
public Http11NioProcessor(int maxHttpHeaderSize, NioEndpoint endpoint, int maxTrailerSize, int maxExtensionSize)
protected Log getLog()
getLog
in class AbstractHttp11Processor<NioChannel>
public AbstractEndpoint.Handler.SocketState event(SocketStatus status) throws IOException
event
in interface Processor<NioChannel>
event
in class AbstractProcessor<NioChannel>
IOException
- error during an I/O operationprotected void resetTimeouts()
AbstractHttp11Processor
resetTimeouts
in class AbstractHttp11Processor<NioChannel>
protected boolean disableKeepAlive()
AbstractHttp11Processor
disableKeepAlive
in class AbstractHttp11Processor<NioChannel>
protected void setRequestLineReadTimeout() throws IOException
AbstractHttp11Processor
setRequestLineReadTimeout
in class AbstractHttp11Processor<NioChannel>
IOException
protected boolean handleIncompleteRequestLineRead()
AbstractHttp11Processor
handleIncompleteRequestLineRead
in class AbstractHttp11Processor<NioChannel>
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<NioChannel>
IOException
protected void setCometTimeouts(SocketWrapper<NioChannel> socketWrapper)
AbstractHttp11Processor
setCometTimeouts
in class AbstractHttp11Processor<NioChannel>
protected boolean breakKeepAliveLoop(SocketWrapper<NioChannel> socketWrapper)
AbstractHttp11Processor
breakKeepAliveLoop
in class AbstractHttp11Processor<NioChannel>
public 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 void setSocketWrapper(SocketWrapper<NioChannel> socketWrapper)
AbstractHttp11Processor
setSocketWrapper
in class AbstractHttp11Processor<NioChannel>
protected AbstractInputBuffer<NioChannel> getInputBuffer()
AbstractHttp11Processor
getInputBuffer
in class AbstractHttp11Processor<NioChannel>
protected AbstractOutputBuffer<NioChannel> getOutputBuffer()
AbstractHttp11Processor
getOutputBuffer
in class AbstractHttp11Processor<NioChannel>
public void setSslSupport(SSLSupport sslSupport)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.