| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| protected class | |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private final CompletionHandler | |
| private final AtomicReference | |
| private static final ByteBuffer[] | |
| private final AtomicReference | |
| private final CompletionHandler | |
| private final Lock | |
| private final Lock |
| Access | Constructor and Description |
|---|---|
| public | Http2AsyncUpgradeHandler(Http2Protocol protocol, Adapter adapter, Request coyoteRequest, SocketWrapperBase<?> socketWrapper)
|
| applicationErrorCompletion | back to summary |
|---|---|
| private final CompletionHandler<Long, Void> applicationErrorCompletion | |
| applicationIOE | back to summary |
|---|---|
| private final AtomicReference<IOException> applicationIOE | |
| BYTEBUFFER_ARRAY | back to summary |
|---|---|
| private static final ByteBuffer[] BYTEBUFFER_ARRAY | |
| error | back to summary |
|---|---|
| private final AtomicReference<Throwable> error | |
| errorCompletion | back to summary |
|---|---|
| private final CompletionHandler<Long, Void> errorCompletion | |
| headerWriteLock | back to summary |
|---|---|
| private final Lock headerWriteLock | |
| sendResetLock | back to summary |
|---|---|
| private final Lock sendResetLock | |
| Http2AsyncUpgradeHandler | back to summary |
|---|---|
| public Http2AsyncUpgradeHandler(Http2Protocol protocol, Adapter adapter, Request coyoteRequest, SocketWrapperBase<?> socketWrapper) | |
| getHeaderFrameBuffers | back to summary |
|---|---|
| protected Http2UpgradeHandler. Overrides org.
| |
| getParser | back to summary |
|---|---|
| protected Http2Parser getParser(String connectionId) Overrides org.
| |
| getPingManager | back to summary |
|---|---|
| protected Http2UpgradeHandler. Overrides org.
| |
| handleAsyncException | back to summary |
|---|---|
| private void handleAsyncException() throws IOException | |
| hasAsyncIO | back to summary |
|---|---|
| public boolean hasAsyncIO() Overrides default org.
| |
| processConnection | back to summary |
|---|---|
| protected void processConnection(WebConnection webConnection, Stream stream) Overrides org.
| |
| processConnectionCallback | back to summary |
|---|---|
| pack-priv void processConnectionCallback(WebConnection webConnection, Stream stream) | |
| processSendfile | back to summary |
|---|---|
| protected SendfileState processSendfile(SendfileData sendfile) Overrides org. Doc from org. Process send file (if supported) for the given stream. The appropriate request attributes should be set before calling this method.
| |
| sendStreamReset | back to summary |
|---|---|
| pack-priv void sendStreamReset(StreamStateMachine state, StreamException se) throws IOException Overrides org.
| |
| settingsEnd | back to summary |
|---|---|
| public void settingsEnd(boolean ack) throws IOException Overrides org. Implements org.
| |
| writeBody | back to summary |
|---|---|
| pack-priv void writeBody(Stream stream, ByteBuffer data, int len, boolean finished) throws IOException Overrides org.
| |
| writeGoAwayFrame | back to summary |
|---|---|
| protected void writeGoAwayFrame(int maxStreamId, long errorCode, byte[] debugMsg) throws IOException Overrides org.
| |
| writeHeaders | back to summary |
|---|---|
| pack-priv void writeHeaders(Stream stream, int pushedStreamId, MimeHeaders mimeHeaders, boolean endOfStream, int payloadSize) throws IOException Overrides org.
| |
| writeSettings | back to summary |
|---|---|
| protected void writeSettings() Overrides org. Doc from org. Write the initial settings frame and any necessary supporting frames. If the initial settings increase the initial window size, it will also be necessary to send a WINDOW_UPDATE frame to increase the size of the flow control window for the connection (stream 0).
| |
| writeWindowUpdate | back to summary |
|---|---|
| pack-priv void writeWindowUpdate(AbstractNonZeroStream stream, int increment, boolean applicationInitiated) throws IOException Overrides org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private byte[] | |
| private ByteBuffer | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public byte[] | |
| public ByteBuffer | |
| public void |
| bufs | back to summary |
|---|---|
| private final List<ByteBuffer> bufs | |
| header | back to summary |
|---|---|
| private byte[] header | |
| payload | back to summary |
|---|---|
| private ByteBuffer payload | |
| payloadSize | back to summary |
|---|---|
| pack-priv int payloadSize | |
| AsyncHeaderFrameBuffers | back to summary |
|---|---|
| pack-priv AsyncHeaderFrameBuffers(int initialPayloadSize) | |
| endFrame | back to summary |
|---|---|
| public void endFrame() throws IOException Implements org.
| |
| endHeaders | back to summary |
|---|---|
| public void endHeaders() throws IOException Implements org.
| |
| expandPayload | back to summary |
|---|---|
| public void expandPayload() Implements org.
| |
| getHeader | back to summary |
|---|---|
| public byte[] getHeader() Implements org.
| |
| getPayload | back to summary |
|---|---|
| public ByteBuffer getPayload() Implements org.
| |
| startFrame | back to summary |
|---|---|
| public void startFrame() Implements org.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | receivePing(byte[] payload, boolean ack)
Overrides org.
|
| public void | sendPing(boolean
Send a ping, even if one was sent recently force)Overrides org. Check to see if a ping was sent recently and, if not, send one. |
| AsyncPingManager | back to summary |
|---|---|
| protected AsyncPingManager() | |
| receivePing | back to summary |
|---|---|
| public void receivePing(byte[] payload, boolean ack) throws IOException Overrides org.
| |
| sendPing | back to summary |
|---|---|
| public void sendPing(boolean force) throws IOException Overrides org. Doc from org. Check to see if a ping was sent recently and, if not, send one.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | completed(Long
The result of the I/O operation. nBytes, SendfileData The object attached to the I/O operation when it was initiated. sendfile)Implements java. Invoked when an operation has completed. |
| public void | failed(Throwable
The exception to indicate why the I/O operation failed t, SendfileData The object attached to the I/O operation when it was initiated. sendfile)Implements java. Invoked when an operation fails. |
| SendfileCompletionHandler | back to summary |
|---|---|
| protected SendfileCompletionHandler() | |
| completed | back to summary |
|---|---|
| public void completed(Long nBytes, SendfileData sendfile) Implements java. Doc from java. Invoked when an operation has completed.
| |
| failed | back to summary |
|---|---|
| public void failed(Throwable t, SendfileData sendfile) Implements java. Doc from java. Invoked when an operation fails.
| |