| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| private final Http3Connection | |
| private String | |
| private final Logger | |
| private final AtomicReference | |
| private final H3FrameOrderVerifier | |
| private final FramesDecoder | |
| private final Http3ExchangeImpl | |
| pack-priv volatile HttpResponse. | |
| private final CompletableFuture | |
| private final HttpResponse. | |
| private final long | |
| private final Http3PushManager | |
| private final Decoder | |
| private final QuicStreamReader | |
| private final SequentialScheduler | |
| private final HeaderFrameReader | |
| private final HttpHeadersBuilder | |
| private final Http3PushPromiseStream | |
| pack-priv volatile Response | |
| pack-priv volatile CompletableFuture | |
| private final CompletableFuture | |
| pack-priv volatile int | |
| pack-priv volatile boolean | |
| pack-priv volatile HttpResponse. | |
| private final ReentrantLock | |
| pack-priv volatile boolean | |
| private final QuicReceiverStream | |
| pack-priv final SubscriptionBase |
| Access | Constructor and Description |
|---|---|
| pack-priv | Http3PushPromiseStream(Exchange<T> exchange, final Http3Connection connection, final Http3PushManager pushManager, final QuicReceiverStream stream, final CompletableFuture<HttpResponse<T>> responseCF, final HttpResponse.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | cancel(IOException cause)
Implements abstract jdk. Cancels a request with a cause. |
| pack-priv void | cancelImpl(Throwable e, Http3Error error)
Implements abstract jdk. Cancel the stream exchange on error |
| pack-priv void | |
| pack-priv void | completed()
Implements abstract jdk. Called when the exchange is completed, so that cleanup actions may be performed - such as deregistering callbacks. |
| pack-priv void | completeResponse(Response r)
Implements abstract jdk. Called at the end of |
| pack-priv void | |
| pack-priv HttpQuicConnection | connection()
Implements abstract jdk. Returns the |
| pack-priv void | connectionError(Throwable throwable, long errorCode, String errMsg)
Implements abstract jdk. Notify of a connection error. |
| pack-priv Http3PushPromiseStream | createResponseSubscriber(HttpResponse.
Overrides jdk. Creates and wraps an |
| pack-priv String | |
| pack-priv Throwable | getCancelCause()
Implements abstract jdk. Returns the cause for which this exchange was canceled, if available. |
| pack-priv HttpResponse. | |
| pack-priv CompletableFuture | getResponseAsync(Executor executor)
Implements abstract jdk. Gets the response headers. |
| protected void | |
| pack-priv CompletableFuture | ignoreBody()
Implements abstract jdk. Ignore/consume the body. |
| pack-priv boolean | isCanceled()
Implements abstract jdk. Returns true if this exchange was canceled. |
| pack-priv Response | newResponse(HttpHeaders responseHeaders, int responseCode)
Implements abstract jdk. Called to create a new Response object for the newly receive response headers and response status code. |
| pack-priv void | |
| pack-priv void | onPollException(QuicStreamReader reader, IOException io)
Implements abstract jdk. Called when an exception is thrown by |
| pack-priv void | onProtocolError(IOException cause)
Implements abstract jdk. Invoked whenever there is a (HTTP) protocol error when dealing with the response from the server. |
| pack-priv void | onReaderReset()
Implements abstract jdk. Called when |
| pack-priv void | |
| private void | |
| pack-priv long | |
| pack-priv void | pushResponseData(ConcurrentLinkedQueue<List<ByteBuffer>> responseData)
Implements abstract jdk. Push response data to the response body subscriber if allowed by the subscription state. |
| pack-priv CompletableFuture | readBodyAsync(HttpResponse.
Implements abstract jdk.
|
| pack-priv void | receiveHeaders(HeadersFrame headers, List<ByteBuffer> payload)
Implements abstract jdk. Called when new payload data is received by |
| pack-priv void | receivePushPromiseFrame(PushPromiseFrame ppf, List<ByteBuffer> payload)
Implements abstract jdk. Called when new payload data is received by |
| pack-priv CompletableFuture | |
| private void | |
| pack-priv void | released()
Implements abstract jdk. Called when the exchange is released, so that cleanup actions may be performed - such as deregistering callbacks. |
| pack-priv CompletableFuture | |
| pack-priv void | |
| private void | |
| pack-priv CompletableFuture | sendBodyAsync()
Implements abstract jdk. Sends a request body, after request headers have been sent. |
| pack-priv CompletableFuture | |
| pack-priv void | |
| pack-priv long | streamId()
Implements abstract jdk. Returns the Quic stream id for this exchange (request/response or push response). |
| private void |
| closed | back to summary |
|---|---|
| pack-priv volatile boolean closed | |
| connection | back to summary |
|---|---|
| private final Http3Connection connection | |
| dbgTag | back to summary |
|---|---|
| private String dbgTag | |
| debug | back to summary |
|---|---|
| private final Logger debug | |
| errorRef | back to summary |
|---|---|
| private final AtomicReference<Throwable> errorRef | |
| frameOrderVerifier | back to summary |
|---|---|
| private final H3FrameOrderVerifier frameOrderVerifier | |
| framesDecoder | back to summary |
|---|---|
| private final FramesDecoder framesDecoder | |
| parent | back to summary |
|---|---|
| private final Http3ExchangeImpl<T> parent | |
| pendingResponseSubscriber | back to summary |
|---|---|
| pack-priv volatile HttpResponse. | |
| pushCF | back to summary |
|---|---|
| private final CompletableFuture<Response> pushCF | |
| pushHandler | back to summary |
|---|---|
| private final HttpResponse. | |
| pushId | back to summary |
|---|---|
| private final long pushId | |
| pushManager | back to summary |
|---|---|
| private final Http3PushManager pushManager | |
| qpackDecoder | back to summary |
|---|---|
| private final Decoder qpackDecoder | |
| reader | back to summary |
|---|---|
| private final QuicStreamReader reader | |
| readScheduler | back to summary |
|---|---|
| private final SequentialScheduler readScheduler | |
| respHeaderFrameReader | back to summary |
|---|---|
| private final HeaderFrameReader respHeaderFrameReader | |
| respHeadersBuilder | back to summary |
|---|---|
| private final HttpHeadersBuilder respHeadersBuilder | |
| respHeadersConsumer | back to summary |
|---|---|
| private final Http3PushPromiseStream<T>. | |
| response | back to summary |
|---|---|
| pack-priv volatile Response response | |
| responseBodyCF | back to summary |
|---|---|
| pack-priv volatile CompletableFuture<T> responseBodyCF | |
| responseCF | back to summary |
|---|---|
| private final CompletableFuture<HttpResponse<T>> responseCF | |
| responseCode | back to summary |
|---|---|
| pack-priv volatile int responseCode | |
| responseReceived | back to summary |
|---|---|
| pack-priv volatile boolean responseReceived | |
| responseSubscriber | back to summary |
|---|---|
| pack-priv volatile HttpResponse. | |
| stateLock | back to summary |
|---|---|
| private final ReentrantLock stateLock | |
| stopRequested | back to summary |
|---|---|
| pack-priv volatile boolean stopRequested | |
| stream | back to summary |
|---|---|
| private final QuicReceiverStream stream | |
| userSubscription | back to summary |
|---|---|
| pack-priv final SubscriptionBase userSubscription | |
| Http3PushPromiseStream | back to summary |
|---|---|
| pack-priv Http3PushPromiseStream(Exchange<T> exchange, final Http3Connection connection, final Http3PushManager pushManager, final QuicReceiverStream stream, final CompletableFuture<HttpResponse<T>> responseCF, final HttpResponse. | |
| cancel | back to summary |
|---|---|
| pack-priv void cancel() Implements abstract jdk. Doc from jdk. Cancels a request. Not currently exposed through API.
| |
| cancel | back to summary |
|---|---|
| pack-priv void cancel(IOException cause) Implements abstract jdk. Doc from jdk. Cancels a request with a cause. Not currently exposed through API.
| |
| cancelImpl | back to summary |
|---|---|
| pack-priv void cancelImpl(Throwable e, Http3Error error) Implements abstract jdk. Doc from jdk. Cancel the stream exchange on error
| |
| close | back to summary |
|---|---|
| pack-priv void close() | |
| completed | back to summary |
|---|---|
| pack-priv void completed() Implements abstract jdk. Doc from jdk. Called when the exchange is completed, so that cleanup actions may be performed - such as deregistering callbacks. Typically, completed is called at the end of the exchange, when the final response body has been received (or an error has caused the completion of the exchange).
| |
| completeResponse | back to summary |
|---|---|
| pack-priv void completeResponse(Response r) Implements abstract jdk. Doc from jdk. Called at the end of | |
| completeResponseExceptionally | back to summary |
|---|---|
| pack-priv void completeResponseExceptionally(Throwable t) same as above but for errors | |
| connection | back to summary |
|---|---|
| pack-priv HttpQuicConnection connection() Implements abstract jdk. Doc from jdk. Returns the
| |
| connectionError | back to summary |
|---|---|
| pack-priv void connectionError(Throwable throwable, long errorCode, String errMsg) Implements abstract jdk. Doc from jdk. Notify of a connection error. The implementation of this method is supposed to close all exchanges, cancel all push promises, and close the connection. | |
| createResponseSubscriber | back to summary |
|---|---|
| pack-priv Http3PushPromiseStream Overrides jdk. Doc from jdk. Creates and wraps an | |
| dbgTag | back to summary |
|---|---|
| pack-priv String dbgTag() | |
| getCancelCause | back to summary |
|---|---|
| pack-priv Throwable getCancelCause() Implements abstract jdk. Doc from jdk. Returns the cause for which this exchange was canceled, if available.
| |
| getPushHandler | back to summary |
|---|---|
| pack-priv HttpResponse. | |
| getResponseAsync | back to summary |
|---|---|
| pack-priv CompletableFuture Implements abstract jdk. Doc from jdk. Gets the response headers. Completes before body is read.
| |
| handleResponse | back to summary |
|---|---|
| protected void handleResponse() | |
| ignoreBody | back to summary |
|---|---|
| pack-priv CompletableFuture Implements abstract jdk. Doc from jdk. Ignore/consume the body.
| |
| isCanceled | back to summary |
|---|---|
| pack-priv boolean isCanceled() Implements abstract jdk. Doc from jdk. Returns true if this exchange was canceled.
| |
| newResponse | back to summary |
|---|---|
| pack-priv Response newResponse(HttpHeaders responseHeaders, int responseCode) Implements abstract jdk. Doc from jdk. Called to create a new Response object for the newly receive response headers and
response status code. This method is called from
| |
| nullBody | back to summary |
|---|---|
| pack-priv void nullBody(HttpResponse<T> resp, Throwable t) Overrides jdk. | |
| onPollException | back to summary |
|---|---|
| pack-priv void onPollException(QuicStreamReader reader, IOException io) Implements abstract jdk. Doc from jdk. Called when an exception is thrown by
| |
| onProtocolError | back to summary |
|---|---|
| pack-priv void onProtocolError(IOException cause) Implements abstract jdk. Doc from jdk. Invoked whenever there is a (HTTP) protocol error when dealing with the response
from the server. The implementations of
| |
| onReaderReset | back to summary |
|---|---|
| pack-priv void onReaderReset() Implements abstract jdk. Doc from jdk. Called when
| |
| onSubscriptionError | back to summary |
|---|---|
| pack-priv void onSubscriptionError(Throwable t) | |
| processQuicData | back to summary |
|---|---|
| private void processQuicData() | |
| pushId | back to summary |
|---|---|
| pack-priv long pushId() | |
| pushResponseData | back to summary |
|---|---|
| pack-priv void pushResponseData(ConcurrentLinkedQueue<List<ByteBuffer>> responseData) Implements abstract jdk. Doc from jdk. Push response data to the response body subscriber if allowed by the subscription state. | |
| readBodyAsync | back to summary |
|---|---|
| pack-priv CompletableFuture Implements abstract jdk.
| |
| receiveHeaders | back to summary |
|---|---|
| pack-priv void receiveHeaders(HeadersFrame headers, List<ByteBuffer> payload) throws IOException Implements abstract jdk. Doc from jdk. Called when new payload data is received by
Any exception thrown here will be rethrown by
| |
| receivePushPromiseFrame | back to summary |
|---|---|
| pack-priv void receivePushPromiseFrame(PushPromiseFrame ppf, List<ByteBuffer> payload) throws IOException Implements abstract jdk. Doc from jdk. Called when new payload data is received by
Any exception thrown here will be rethrown by
| |
| receiveResponseBody | back to summary |
|---|---|
| pack-priv CompletableFuture | |
| registerResponseSubscriber | back to summary |
|---|---|
| private void registerResponseSubscriber(Http3PushPromiseStream<T>. | |
| released | back to summary |
|---|---|
| pack-priv void released() Implements abstract jdk. Doc from jdk. Called when the exchange is released, so that cleanup actions may be performed - such as deregistering callbacks. Typically released is called during upgrade, when an HTTP/2 stream takes over from an Http1Exchange, or when a new exchange is created during a multi exchange before the final response body was received.
| |
| responseCF | back to summary |
|---|---|
| pack-priv CompletableFuture | |
| responseReceived | back to summary |
|---|---|
| pack-priv void responseReceived() | |
| responseReceived0 | back to summary |
|---|---|
| private void responseReceived0() | |
| sendBodyAsync | back to summary |
|---|---|
| pack-priv CompletableFuture Implements abstract jdk. Doc from jdk. Sends a request body, after request headers have been sent.
| |
| sendHeadersAsync | back to summary |
|---|---|
| pack-priv CompletableFuture Implements abstract jdk.
| |
| start | back to summary |
|---|---|
| pack-priv void start() | |
| streamId | back to summary |
|---|---|
| pack-priv long streamId() Implements abstract jdk. Doc from jdk. Returns the Quic stream id for this exchange (request/response or push response).
| |
| unregisterResponseSubscriber | back to summary |
|---|---|
| private void unregisterResponseSubscriber(Http3PushPromiseStream<T>. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | register()
Overrides jdk. This method can be implemented by subclasses to perform registration actions. |
| protected void | unregister()
Overrides jdk. This method can be implemented by subclasses to perform unregistration actions. |
| Http3PushStreamResponseSubscriber | back to summary |
|---|---|
| pack-priv Http3PushStreamResponseSubscriber(HttpResponse. | |
| register | back to summary |
|---|---|
| protected void register() Overrides jdk. Doc from jdk. This method can be implemented by subclasses to perform registration actions. It will not be called if already registered or unregistered.
| |
| unregister | back to summary |
|---|---|
| protected void unregister() Overrides jdk. Doc from jdk. This method can be implemented by subclasses to perform unregistration actions. It will not be called if not already registered, or already unregistered.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | formatMessage(String message, String header)
Overrides jdk.
|
| pack-priv String | |
| pack-priv HeaderFrameReader | headerFrameReader()
Implements abstract jdk.
|
| pack-priv HttpHeadersBuilder | headersBuilder()
Implements abstract jdk.
|
| pack-priv void | headersCompleted()
Implements abstract jdk.
|
| pack-priv Decoder | qpackDecoder()
Implements abstract jdk.
|
| pack-priv void | |
| public long | streamId()
Implements jdk. Returns request/response stream id or push stream id associated with a decoding callback. |
| PushRespHeadersConsumer | back to summary |
|---|---|
| public PushRespHeadersConsumer() | |
| formatMessage | back to summary |
|---|---|
| protected String formatMessage(String message, String header) Overrides jdk.
| |
| headerFieldType | back to summary |
|---|---|
| pack-priv String headerFieldType() Overrides jdk.
| |
| headerFrameReader | back to summary |
|---|---|
| pack-priv HeaderFrameReader headerFrameReader() Implements abstract jdk.
| |
| headersBuilder | back to summary |
|---|---|
| pack-priv HttpHeadersBuilder headersBuilder() Implements abstract jdk.
| |
| headersCompleted | back to summary |
|---|---|
| pack-priv void headersCompleted() Implements abstract jdk.
| |
| qpackDecoder | back to summary |
|---|---|
| pack-priv Decoder qpackDecoder() Implements abstract jdk.
| |
| resetDone | back to summary |
|---|---|
| pack-priv void resetDone() Implements abstract jdk. | |
| streamId | back to summary |
|---|---|
| public long streamId() Implements jdk. Doc from jdk. Returns request/response stream id or push stream id associated with a decoding callback.
| |