public class Http11AprProcessor extends AbstractHttp11Processor<java.lang.Long>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
clientCertProvider
When client certificate information is presented in a form other than
instances of
X509Certificate it needs to be
converted before it can be used and this property controls which JSSE
provider is used to perform the conversion. |
protected InternalAprInputBuffer |
inputBuffer
Input.
|
protected InternalAprOutputBuffer |
outputBuffer
Output.
|
protected AprEndpoint.SendfileData |
sendfileData
Sendfile data.
|
comet, compressableMimeTypes, compressionLevel, compressionMinSize, connectionUploadTimeout, contentDelimitation, disableUploadTimeout, 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, socketWrapper
Constructor and Description |
---|
Http11AprProcessor(int headerBufferSize,
AprEndpoint endpoint,
int maxTrailerSize,
java.util.Set<java.lang.String> allowedTrailerHeaders,
int maxExtensionSize,
int maxSwallowSize) |
Modifier and Type | Method and Description |
---|---|
void |
actionInternal(ActionCode actionCode,
java.lang.Object param)
Send an action to the connector.
|
protected boolean |
breakKeepAliveLoop(SocketWrapper<java.lang.Long> 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.
|
java.lang.String |
getClientCertProvider() |
protected AbstractInputBuffer<java.lang.Long> |
getInputBuffer()
Exposes input buffer to super class to allow better code re-use.
|
protected Log |
getLog() |
protected AbstractOutputBuffer<java.lang.Long> |
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.
|
void |
setClientCertProvider(java.lang.String s) |
protected void |
setCometTimeouts(SocketWrapper<java.lang.Long> 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.
|
void |
setSslSupport(SSLSupport sslSupport) |
action, addCompressableMimeType, 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, errorDispatch, getAdapter, getEndpoint, getErrorState, getExecutor, getRequest, getSocketWrapper, isAsync, resetErrorState, setAdapter, setErrorState, setSocketWrapper
protected InternalAprInputBuffer inputBuffer
protected InternalAprOutputBuffer outputBuffer
protected AprEndpoint.SendfileData sendfileData
protected java.lang.String clientCertProvider
X509Certificate
it needs to be
converted before it can be used and this property controls which JSSE
provider is used to perform the conversion. For example it is used with
the AJP connectors, the HTTP APR connector and with the
SSLValve
. If not specified, the
default provider will be used.public Http11AprProcessor(int headerBufferSize, AprEndpoint endpoint, int maxTrailerSize, java.util.Set<java.lang.String> allowedTrailerHeaders, int maxExtensionSize, int maxSwallowSize)
protected Log getLog()
getLog
in class AbstractProcessor<java.lang.Long>
public java.lang.String getClientCertProvider()
public void setClientCertProvider(java.lang.String s)
public AbstractEndpoint.Handler.SocketState event(SocketStatus status) throws java.io.IOException
event
in interface Processor<java.lang.Long>
event
in class AbstractProcessor<java.lang.Long>
java.io.IOException
- error during an I/O operationprotected boolean disableKeepAlive()
AbstractHttp11Processor
disableKeepAlive
in class AbstractHttp11Processor<java.lang.Long>
protected void setRequestLineReadTimeout() throws java.io.IOException
AbstractHttp11Processor
setRequestLineReadTimeout
in class AbstractHttp11Processor<java.lang.Long>
java.io.IOException
protected boolean handleIncompleteRequestLineRead()
AbstractHttp11Processor
handleIncompleteRequestLineRead
in class AbstractHttp11Processor<java.lang.Long>
true
if the processor should break out of the
processing loop, otherwise false
.protected void setSocketTimeout(int timeout)
AbstractHttp11Processor
setSocketTimeout
in class AbstractHttp11Processor<java.lang.Long>
protected void setCometTimeouts(SocketWrapper<java.lang.Long> socketWrapper)
AbstractHttp11Processor
setCometTimeouts
in class AbstractHttp11Processor<java.lang.Long>
protected boolean breakKeepAliveLoop(SocketWrapper<java.lang.Long> socketWrapper)
AbstractHttp11Processor
breakKeepAliveLoop
in class AbstractHttp11Processor<java.lang.Long>
protected void resetTimeouts()
AbstractHttp11Processor
resetTimeouts
in class AbstractHttp11Processor<java.lang.Long>
public void recycleInternal()
recycleInternal
in class AbstractHttp11Processor<java.lang.Long>
public void setSslSupport(SSLSupport sslSupport)
public void actionInternal(ActionCode actionCode, java.lang.Object param)
actionInternal
in class AbstractHttp11Processor<java.lang.Long>
actionCode
- Type of the actionparam
- Action parameterprotected void prepareRequestInternal()
AbstractHttp11Processor
prepareRequestInternal
in class AbstractHttp11Processor<java.lang.Long>
protected boolean prepareSendfile(OutputFilter[] outputFilters)
prepareSendfile
in class AbstractHttp11Processor<java.lang.Long>
protected AbstractInputBuffer<java.lang.Long> getInputBuffer()
AbstractHttp11Processor
getInputBuffer
in class AbstractHttp11Processor<java.lang.Long>
protected AbstractOutputBuffer<java.lang.Long> getOutputBuffer()
AbstractHttp11Processor
getOutputBuffer
in class AbstractHttp11Processor<java.lang.Long>
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.