| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private Content. | |
| private final HTTP2ServerConnection | |
| private boolean | |
| private final HttpChannel | |
| private MetaData. | |
| private MetaData. | |
| private final HTTP2Stream | |
| private Content. | |
| private boolean | |
| private final AutoLock | |
| private static final Logger | |
| private TunnelSupport |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | |
| private Content. | |
| public void | demand()
Implements org. Demands more content chunks to the underlying implementation. |
| public void | failed(Throwable
the reason for the operation failure x)Overrides default org. Callback invoked when the operation fails. |
| public String | |
| public long | |
| public TunnelSupport | |
| public boolean | |
| public boolean | |
| private boolean | |
| private void | |
| public Runnable | |
| public Runnable | onFailure(Throwable failure, Callback callback)
Implements org.
|
| public Runnable | |
| public Runnable | |
| public void | onTimeout(TimeoutException timeout, BiConsumer<Runnable, Boolean> consumer)
Implements org.
|
| public Runnable | |
| public void | prepareResponse(HttpFields.
The headers to prepare. headersImplements org. Prepare the response headers with respect to the stream. |
| public void | push(MetaData.
the resource to push resourceOverrides default org. Pushes the given |
| public Content. | read()
Implements org. Reads a chunk of content, with the same semantic as |
| private HttpFields | |
| public void | send(MetaData.
The request metadata for which the response should be sent. request,The response metadata to be sent or null if the response is already committed by a previous call
to send. response,True if this will be the last call to send and the response can be completed. last, ByteBuffer A buffer of content to send or null if no content. byteBuffer, Callback The callback to invoke when the send is completed successfully or in failure. callback)Implements org. Send response meta-data and/or data. |
| private void | |
| private void | |
| private void | sendHeaders(MetaData.
|
| private void | |
| public void | |
| public void | succeeded()
Overrides default org. Callback invoked when the operation completes. |
| _chunk | back to summary |
|---|---|
| private Content. | |
| _connection | back to summary |
|---|---|
| private final HTTP2ServerConnection _connection | |
| _demand | back to summary |
|---|---|
| private boolean _demand | |
| _httpChannel | back to summary |
|---|---|
| private final HttpChannel _httpChannel | |
| _requestMetaData | back to summary |
|---|---|
| private MetaData. | |
| _responseMetaData | back to summary |
|---|---|
| private MetaData. | |
| _stream | back to summary |
|---|---|
| private final HTTP2Stream _stream | |
| _trailer | back to summary |
|---|---|
| private Content. | |
| committed | back to summary |
|---|---|
| private boolean committed | |
| lock | back to summary |
|---|---|
| private final AutoLock lock | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| tunnelSupport | back to summary |
|---|---|
| private TunnelSupport tunnelSupport | |
| HttpStreamOverHTTP2 | back to summary |
|---|---|
| public HttpStreamOverHTTP2(HTTP2ServerConnection connection, HttpChannel httpChannel, HTTP2Stream stream) | |
| consumeAvailable | back to summary |
|---|---|
| public Throwable consumeAvailable() Implements org.
| |
| createChunk | back to summary |
|---|---|
| private Content. | |
| demand | back to summary |
|---|---|
| public void demand() Implements org. Doc from org. Demands more content chunks to the underlying implementation. This method is called from the implementation of
| |
| failed | back to summary |
|---|---|
| public void failed(Throwable x) Overrides default org. Doc from org. Callback invoked when the operation fails. | |
| getId | back to summary |
|---|---|
| public String getId() Implements org.
| |
| getIdleTimeout | back to summary |
|---|---|
| public long getIdleTimeout() Implements org.
| |
| getTunnelSupport | back to summary |
|---|---|
| public TunnelSupport getTunnelSupport() Overrides default org.
| |
| isCommitted | back to summary |
|---|---|
| public boolean isCommitted() Implements org.
| |
| isIdle | back to summary |
|---|---|
| public boolean isIdle() Implements org.
| |
| isTunnel | back to summary |
|---|---|
| private boolean isTunnel(MetaData. | |
| onBadMessage | back to summary |
|---|---|
| private void onBadMessage(HttpException x) | |
| onDataAvailable | back to summary |
|---|---|
| public Runnable onDataAvailable() Implements org.
| |
| onFailure | back to summary |
|---|---|
| public Runnable onFailure(Throwable failure, Callback callback) Implements org.
| |
| onPushRequest | back to summary |
|---|---|
| public Runnable onPushRequest(MetaData. | |
| onRequest | back to summary |
|---|---|
| public Runnable onRequest(HeadersFrame frame) | |
| onTimeout | back to summary |
|---|---|
| public void onTimeout(TimeoutException timeout, BiConsumer<Runnable, Boolean> consumer) Implements org.
| |
| onTrailer | back to summary |
|---|---|
| public Runnable onTrailer(HeadersFrame frame) Implements org.
| |
| prepareResponse | back to summary |
|---|---|
| public void prepareResponse(HttpFields. Implements org. Doc from org. Prepare the response headers with respect to the stream. Typically this may set headers related to
protocol specific behaviour (e.g.
| |
| push | back to summary |
|---|---|
| public void push(MetaData. Overrides default org. Doc from org. Pushes the given | |
| read | back to summary |
|---|---|
| public Content. Implements org. Doc from org. Reads a chunk of content, with the same semantic as This method is called from the implementation of
| |
| retrieveTrailers | back to summary |
|---|---|
| private HttpFields retrieveTrailers() | |
| send | back to summary |
|---|---|
| public void send(MetaData. Implements org. Doc from org. Send response meta-data and/or data.
| |
| sendContent | back to summary |
|---|---|
| private void sendContent(MetaData. | |
| sendDataFrame | back to summary |
|---|---|
| private void sendDataFrame(ByteBuffer content, boolean lastContent, boolean endStream, Callback callback) | |
| sendHeaders | back to summary |
|---|---|
| private void sendHeaders(MetaData. | |
| sendTrailersFrame | back to summary |
|---|---|
| private void sendTrailersFrame(MetaData metaData, Callback callback) | |
| setIdleTimeout | back to summary |
|---|---|
| public void setIdleTimeout(long idleTimeoutMs) Implements org.
| |
| succeeded | back to summary |
|---|---|
| public void succeeded() Overrides default org. Doc from org. Callback invoked when the operation completes.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpFields |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | succeeded()
Overrides org. Overrides default org. Callback invoked when the operation completes. |
| trailers | back to summary |
|---|---|
| private final HttpFields trailers | |
| SendTrailers | back to summary |
|---|---|
| private SendTrailers(Callback callback, HttpFields trailers) | |
| succeeded | back to summary |
|---|---|
| public void succeeded() Overrides org. Overrides default org. Doc from org. Callback invoked when the operation completes.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public EndPoint | getEndPoint()
Implements org. Returns the |
| public String | getProtocol()
Implements org. Returns the protocol of the |
| endPoint | back to summary |
|---|---|
| private final EndPoint endPoint | |
| protocol | back to summary |
|---|---|
| private final String protocol | |
| TunnelSupportOverHTTP2 | back to summary |
|---|---|
| private TunnelSupportOverHTTP2(String protocol) | |
| getEndPoint | back to summary |
|---|---|
| public EndPoint getEndPoint() Implements org. Doc from org. Returns the | |
| getProtocol | back to summary |
|---|---|
| public String getProtocol() Implements org. Doc from org. Returns the protocol of the | |