Package net.officefloor.servlet.tomcat
Class OfficeFloorProcessor
- java.lang.Object
-
- org.apache.coyote.AbstractProcessorLight
-
- org.apache.coyote.AbstractProcessor
-
- net.officefloor.servlet.tomcat.OfficeFloorProcessor
-
- All Implemented Interfaces:
org.apache.coyote.ActionHook
,org.apache.coyote.Processor
public class OfficeFloorProcessor extends org.apache.coyote.AbstractProcessor
OfficeFloor
Processor
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorProcessor(OfficeFloorProtocol protocol, org.apache.coyote.Request request, org.apache.coyote.Response response, ServerHttpConnection connection, java.util.concurrent.Executor executor, AsynchronousFlow asynchronousFlow, AsynchronousFlowCompletion asynchronousFlowCompletion)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
ack()
protected void
ack(org.apache.coyote.ContinueResponseTiming arg0)
protected int
available(boolean doRead)
protected void
disableSwallowRequest()
protected org.apache.tomcat.util.net.AbstractEndpoint.Handler.SocketState
dispatchEndRequest()
protected void
finishResponse()
protected void
flush()
protected boolean
flushBufferedWrite()
protected org.apache.juli.logging.Log
getLog()
protected boolean
isReadyForWrite()
protected boolean
isRequestBodyFullyRead()
protected boolean
isTrailerFieldsReady()
void
pause()
protected void
prepareResponse()
protected void
registerReadInterest()
protected org.apache.tomcat.util.net.AbstractEndpoint.Handler.SocketState
service(org.apache.tomcat.util.net.SocketWrapperBase<?> socketWrapper)
protected void
setRequestBody(org.apache.tomcat.util.buf.ByteChunk body)
protected void
setSwallowResponse()
-
Methods inherited from class org.apache.coyote.AbstractProcessor
action, asyncPostProcess, checkAsyncTimeoutGeneration, dispatch, dispatchNonBlockingRead, doHttpUpgrade, doPush, execute, executeDispatches, getAdapter, getAsyncTimeout, getConnectionID, getErrorState, getLeftoverInput, getPopulateRequestAttributesFromSocket, getRequest, getSocketWrapper, getStreamID, getUpgradeToken, isAsync, isPushSupported, isReadyForRead, isTrailerFieldsSupported, isUpgrade, logAccess, parseHost, populateHost, populatePort, populateRequestAttributeRemoteHost, populateSslRequestAttributes, processSocketEvent, recycle, setAsyncTimeout, setErrorState, setSocketWrapper, setSslSupport, sslReHandShake, timeoutAsync
-
-
-
-
Constructor Detail
-
OfficeFloorProcessor
public OfficeFloorProcessor(OfficeFloorProtocol protocol, org.apache.coyote.Request request, org.apache.coyote.Response response, ServerHttpConnection connection, java.util.concurrent.Executor executor, AsynchronousFlow asynchronousFlow, AsynchronousFlowCompletion asynchronousFlowCompletion)
Instantiate.- Parameters:
protocol
-OfficeFloorProtocol
.request
-Request
.response
-Response
.connection
-ServerHttpConnection
.executor
-Executor
.asynchronousFlow
-AsynchronousFlow
.asynchronousFlowCompletion
-AsynchronousFlowCompletion
.
-
-
Method Detail
-
getLog
protected org.apache.juli.logging.Log getLog()
- Specified by:
getLog
in classorg.apache.coyote.AbstractProcessorLight
-
available
protected int available(boolean doRead)
- Specified by:
available
in classorg.apache.coyote.AbstractProcessor
-
prepareResponse
protected void prepareResponse() throws java.io.IOException
- Specified by:
prepareResponse
in classorg.apache.coyote.AbstractProcessor
- Throws:
java.io.IOException
-
finishResponse
protected void finishResponse() throws java.io.IOException
- Specified by:
finishResponse
in classorg.apache.coyote.AbstractProcessor
- Throws:
java.io.IOException
-
setSwallowResponse
protected void setSwallowResponse()
- Specified by:
setSwallowResponse
in classorg.apache.coyote.AbstractProcessor
-
ack
protected void ack()
- Overrides:
ack
in classorg.apache.coyote.AbstractProcessor
-
ack
protected void ack(org.apache.coyote.ContinueResponseTiming arg0)
- Specified by:
ack
in classorg.apache.coyote.AbstractProcessor
-
pause
public void pause()
-
flush
protected void flush() throws java.io.IOException
- Specified by:
flush
in classorg.apache.coyote.AbstractProcessor
- Throws:
java.io.IOException
-
setRequestBody
protected void setRequestBody(org.apache.tomcat.util.buf.ByteChunk body)
- Specified by:
setRequestBody
in classorg.apache.coyote.AbstractProcessor
-
disableSwallowRequest
protected void disableSwallowRequest()
- Specified by:
disableSwallowRequest
in classorg.apache.coyote.AbstractProcessor
-
isRequestBodyFullyRead
protected boolean isRequestBodyFullyRead()
- Specified by:
isRequestBodyFullyRead
in classorg.apache.coyote.AbstractProcessor
-
registerReadInterest
protected void registerReadInterest()
- Specified by:
registerReadInterest
in classorg.apache.coyote.AbstractProcessor
-
isReadyForWrite
protected boolean isReadyForWrite()
- Specified by:
isReadyForWrite
in classorg.apache.coyote.AbstractProcessor
-
isTrailerFieldsReady
protected boolean isTrailerFieldsReady()
- Specified by:
isTrailerFieldsReady
in classorg.apache.coyote.AbstractProcessor
-
flushBufferedWrite
protected boolean flushBufferedWrite() throws java.io.IOException
- Specified by:
flushBufferedWrite
in classorg.apache.coyote.AbstractProcessor
- Throws:
java.io.IOException
-
dispatchEndRequest
protected org.apache.tomcat.util.net.AbstractEndpoint.Handler.SocketState dispatchEndRequest() throws java.io.IOException
- Specified by:
dispatchEndRequest
in classorg.apache.coyote.AbstractProcessor
- Throws:
java.io.IOException
-
service
protected org.apache.tomcat.util.net.AbstractEndpoint.Handler.SocketState service(org.apache.tomcat.util.net.SocketWrapperBase<?> socketWrapper) throws java.io.IOException
- Specified by:
service
in classorg.apache.coyote.AbstractProcessorLight
- Throws:
java.io.IOException
-
-