public class Http11Processor extends AbstractHttp11Processor<Socket>
| Modifier and Type | Field and Description |
|---|---|
protected SSLSupport |
sslSupport
SSL information.
|
comet, compressableMimeTypes, compressionLevel, compressionMinSize, connectionUploadTimeout, contentDelimitation, disableUploadTimeout, expectation, hostNameC, http09, http11, httpUpgradeHandler, inputBuffer, keepAlive, keepAliveTimeout, keptAlive, maxKeepAliveRequests, maxSavePostSize, noCompressionUserAgents, openSocket, outputBuffer, readComplete, restrictedUserAgents, sendfileInProgress, server, smadapter, asyncStateMachine, endpoint, request, response, socketWrapper| Constructor and Description |
|---|
Http11Processor(int headerBufferSize,
JIoEndpoint endpoint,
int maxTrailerSize,
Set<String> allowedTrailerHeaders,
int maxExtensionSize,
int maxSwallowSize) |
| Modifier and Type | Method and Description |
|---|---|
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 |
registerForEvent(boolean read,
boolean write)
Register the socket for the specified events.
|
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.
|
void |
setSslSupport(SSLSupport sslSupport)
Set the SSL information for this HTTP connection.
|
action, addCompressableMimeType, asyncDispatch, endRequest, findBytes, getCompression, getConnectionUploadTimeout, getDisableUploadTimeout, getHttpUpgradeHandler, getKeepAliveTimeout, getLeftoverInput, getMaxKeepAliveRequests, getMaxSavePostSize, getServer, getSocketBuffer, initializeFilters, isComet, isUpgrade, parseHost, prepareRequest, process, recycle, setCompressableMimeTypes, setCompressableMimeTypes, setCompression, setCompressionMinSize, setConnectionUploadTimeout, setDisableUploadTimeout, setKeepAliveTimeout, setMaxKeepAliveRequests, setMaxSavePostSize, setNoCompressionUserAgents, setRestrictedUserAgents, setServer, statusDropsConnection, upgradeDispatchasyncPostProcess, errorDispatch, getAdapter, getEndpoint, getErrorState, getExecutor, getRequest, getSocketWrapper, isAsync, resetErrorState, setAdapter, setErrorState, setSocketWrapperprotected SSLSupport sslSupport
public Http11Processor(int headerBufferSize,
JIoEndpoint endpoint,
int maxTrailerSize,
Set<String> allowedTrailerHeaders,
int maxExtensionSize,
int maxSwallowSize)
protected Log getLog()
getLog in class AbstractProcessor<Socket>public void setSslSupport(SSLSupport sslSupport)
public int getDisableKeepAlivePercentage()
public void setDisableKeepAlivePercentage(int disableKeepAlivePercentage)
protected boolean disableKeepAlive()
AbstractHttp11ProcessordisableKeepAlive in class AbstractHttp11Processor<Socket>protected void setRequestLineReadTimeout()
throws IOException
AbstractHttp11ProcessorsetRequestLineReadTimeout in class AbstractHttp11Processor<Socket>IOExceptionprotected boolean handleIncompleteRequestLineRead()
AbstractHttp11ProcessorhandleIncompleteRequestLineRead in class AbstractHttp11Processor<Socket>true if the processor should break out of the
processing loop, otherwise false.protected void setSocketTimeout(int timeout)
throws IOException
AbstractHttp11ProcessorsetSocketTimeout in class AbstractHttp11Processor<Socket>IOExceptionprotected void setCometTimeouts(SocketWrapper<Socket> socketWrapper)
AbstractHttp11ProcessorsetCometTimeouts in class AbstractHttp11Processor<Socket>protected boolean breakKeepAliveLoop(SocketWrapper<Socket> socketWrapper)
AbstractHttp11ProcessorbreakKeepAliveLoop in class AbstractHttp11Processor<Socket>protected void registerForEvent(boolean read,
boolean write)
AbstractProcessorregisterForEvent in class AbstractProcessor<Socket>read - Register the socket for read eventswrite - Register the socket for write eventsprotected void resetTimeouts()
AbstractHttp11ProcessorresetTimeouts in class AbstractHttp11Processor<Socket>protected void recycleInternal()
recycleInternal in class AbstractHttp11Processor<Socket>public AbstractEndpoint.Handler.SocketState event(SocketStatus status) throws IOException
AbstractProcessorevent in interface Processor<Socket>event in class AbstractProcessor<Socket>IOExceptionpublic void actionInternal(ActionCode actionCode, Object param)
actionCode - Type of the actionparam - Action parameterprotected void prepareRequestInternal()
AbstractHttp11ProcessorprepareRequestInternal in class AbstractHttp11Processor<Socket>protected boolean prepareSendfile(OutputFilter[] outputFilters)
protected AbstractInputBuffer<Socket> getInputBuffer()
AbstractHttp11ProcessorgetInputBuffer in class AbstractHttp11Processor<Socket>protected AbstractOutputBuffer<Socket> getOutputBuffer()
AbstractHttp11ProcessorgetOutputBuffer in class AbstractHttp11Processor<Socket>public void setSocketBuffer(int socketBuffer)
setSocketBuffer in class AbstractHttp11Processor<Socket>Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.