| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| private final Http2UpgradeHandler | |
| private static final Log | |
| private final Lock | |
| private SendfileData | |
| private SendfileState | |
| private static final StringManager | |
| private final Stream |
| Access | Constructor and Description |
|---|---|
| pack-priv | StreamProcessor(Http2UpgradeHandler handler, Stream stream, Adapter adapter, SocketWrapperBase<?> socketWrapper)
|
| Modifier and Type | Method and Description |
|---|---|
| protected final void | ack(ContinueResponseTiming continueResponseTiming)
Implements abstract org.
|
| protected final int | |
| protected final void | disableSwallowRequest()
Implements abstract org.
|
| protected final AbstractEndpoint. | dispatchEndRequest()
Implements abstract org. Perform any necessary clean-up processing if the dispatch resulted in the completion of processing for the current request. |
| protected final void | doPush(Request
Contains all the information necessary for the Processor to process the push request pushTarget)Overrides org. Process a push. |
| protected final void | |
| protected final void | |
| protected final void | |
| protected final boolean | flushBufferedWrite()
Implements abstract org. Flush any pending writes. |
| protected final Log | |
| protected String | getProtocolRequestId()
Overrides org. Protocols that provide per HTTP request IDs (e.g. Stream ID for HTTP/2) should override this method and return the appropriate ID. |
| protected ServletConnection | getServletConnection()
Implements abstract org. Protocols must override this method and return an appropriate ServletConnection instance |
| protected final boolean | isPushSupported()
Overrides org. Protocols that support push should override this method and return |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | isRequestBodyFullyRead()
Implements abstract org.
|
| protected boolean | |
| protected boolean | isTrailerFieldsSupported()
Overrides org. Protocols that support trailer fields should override this method and return |
| public final void | pause()
Implements org. Informs the processor that the underlying I/O layer has stopped accepting new connections. |
| pack-priv static void | prepareHeaders(Request coyoteRequest, Response coyoteResponse, boolean noSendfile, Http2Protocol protocol, Stream stream)
|
| protected final void | |
| private void | |
| pack-priv final void | |
| protected void | processSocketEvent(SocketEvent event, boolean dispatch)
Overrides org.
|
| public final void | recycle()
Overrides org. Implements org. Recycle the processor, ready for the next request which may be on the same connection or a different connection. |
| protected final void | |
| public final AbstractEndpoint. | service(SocketWrapperBase<?>
The connection to process socket)Implements abstract org. Service a 'standard' HTTP request. |
| protected final void | setRequestBody(ByteChunk body)
Implements abstract org.
|
| protected final void | |
| private boolean |
| H2_PSEUDO_HEADERS_REQUEST | back to summary |
|---|---|
| private static final Set<String> H2_PSEUDO_HEADERS_REQUEST | |
| handler | back to summary |
|---|---|
| private final Http2UpgradeHandler handler | |
| log | back to summary |
|---|---|
| private static final Log log | |
| processLock | back to summary |
|---|---|
| private final Lock processLock | |
| sendfileData | back to summary |
|---|---|
| private SendfileData sendfileData | |
| sendfileState | back to summary |
|---|---|
| private SendfileState sendfileState | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| stream | back to summary |
|---|---|
| private final Stream stream | |
| StreamProcessor | back to summary |
|---|---|
| pack-priv StreamProcessor(Http2UpgradeHandler handler, Stream stream, Adapter adapter, SocketWrapperBase<?> socketWrapper) | |
| ack | back to summary |
|---|---|
| protected final void ack(ContinueResponseTiming continueResponseTiming) Implements abstract org.
| |
| available | back to summary |
|---|---|
| protected final int available(boolean doRead) Implements abstract org.
| |
| disableSwallowRequest | back to summary |
|---|---|
| protected final void disableSwallowRequest() Implements abstract org.
| |
| dispatchEndRequest | back to summary |
|---|---|
| protected final AbstractEndpoint. Implements abstract org. Doc from org. Perform any necessary clean-up processing if the dispatch resulted in the completion of processing for the current request.
| |
| doPush | back to summary |
|---|---|
| protected final void doPush(Request pushTarget) Overrides org. Doc from org. Process a push. Processors that support push should override this method and process the provided token. | |
| executeDispatches | back to summary |
|---|---|
| protected final void executeDispatches() Overrides org.
| |
| finishResponse | back to summary |
|---|---|
| protected final void finishResponse() throws IOException Implements abstract org.
| |
| flush | back to summary |
|---|---|
| protected final void flush() throws IOException Implements abstract org.
| |
| flushBufferedWrite | back to summary |
|---|---|
| protected final boolean flushBufferedWrite() throws IOException Implements abstract org. Doc from org. Flush any pending writes. Used during non-blocking writes to flush any remaining data from a previous incomplete write.
| |
| getLog | back to summary |
|---|---|
| protected final Log getLog() Implements abstract org.
| |
| getProtocolRequestId | back to summary |
|---|---|
| protected String getProtocolRequestId() Overrides org. Doc from org. Protocols that provide per HTTP request IDs (e.g. Stream ID for HTTP/2) should override this method and return the appropriate ID. | |
| getServletConnection | back to summary |
|---|---|
| protected ServletConnection getServletConnection() Implements abstract org. Doc from org. Protocols must override this method and return an appropriate ServletConnection instance
| |
| isPushSupported | back to summary |
|---|---|
| protected final boolean isPushSupported() Overrides org. Doc from org. Protocols that support push should override this method and return
| |
| isReadyForRead | back to summary |
|---|---|
| protected final boolean isReadyForRead() Overrides org.
| |
| isReadyForWrite | back to summary |
|---|---|
| protected final boolean isReadyForWrite() Implements abstract org.
| |
| isRequestBodyFullyRead | back to summary |
|---|---|
| protected final boolean isRequestBodyFullyRead() Implements abstract org.
| |
| isTrailerFieldsReady | back to summary |
|---|---|
| protected boolean isTrailerFieldsReady() Implements abstract org.
| |
| isTrailerFieldsSupported | back to summary |
|---|---|
| protected boolean isTrailerFieldsSupported() Overrides org. Doc from org. Protocols that support trailer fields should override this method and return
| |
| pause | back to summary |
|---|---|
| public final void pause() Implements org. Doc from org. Informs the processor that the underlying I/O layer has stopped accepting new connections. This is primarily intended to enable processors that use multiplexed connections to prevent further 'streams' being added to an existing multiplexed connection.
| |
| prepareHeaders | back to summary |
|---|---|
| pack-priv static void prepareHeaders(Request coyoteRequest, Response coyoteResponse, boolean noSendfile, Http2Protocol protocol, Stream stream) | |
| prepareResponse | back to summary |
|---|---|
| protected final void prepareResponse() throws IOException Implements abstract org.
| |
| prepareSendfile | back to summary |
|---|---|
| private void prepareSendfile() | |
| process | back to summary |
|---|---|
| pack-priv final void process(SocketEvent event) | |
| processSocketEvent | back to summary |
|---|---|
| protected void processSocketEvent(SocketEvent event, boolean dispatch) Overrides org.
| |
| recycle | back to summary |
|---|---|
| public final void recycle() Overrides org. Implements org. Doc from org. Recycle the processor, ready for the next request which may be on the same connection or a different connection.
| |
| registerReadInterest | back to summary |
|---|---|
| protected final void registerReadInterest() Implements abstract org.
| |
| service | back to summary |
|---|---|
| public final AbstractEndpoint. Implements abstract org. Doc from org. Service a 'standard' HTTP request. This method is called for both new requests and for requests that have
partially read the HTTP request line or HTTP headers. Once the headers have been fully read this method is not
called again until there is a new HTTP request to process. Note that the request type may change during
processing which may result in one or more calls to
| |
| setRequestBody | back to summary |
|---|---|
| protected final void setRequestBody(ByteChunk body) Implements abstract org.
| |
| setSwallowResponse | back to summary |
|---|---|
| protected final void setSwallowResponse() Implements abstract org.
| |
| validateRequest | back to summary |
|---|---|
| private boolean validateRequest() | |