MetaData.Request , represents the
flow of data from and to a single request and response cycle. It is roughly analogous to the
Stream within an HTTP/2 connection, in that a connection can have many streams, each used once
and each representing a single request and response exchange.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final Exception | |
| public static final String | UPGRADE_CONNECTION_ATTRIBUTE
Attribute name to be used as a |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | |
| public static Throwable | |
| public void | |
| public String | Returns: an ID unique within the lifetime scope of the associated protocol connection. This may be a protocol ID (e.g. HTTP/2 stream ID) or it may be unrelated to the protocol.
|
| public long | |
| public default TunnelSupport | |
| public boolean | |
| public void | prepareResponse(HttpFields.
The headers to prepare. headersPrepare the response headers with respect to the stream. |
| public default void | |
| public Content. | |
| 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. content, Callback The callback to invoke when the send is completed successfully or in failure. callback)Send response meta-data and/or data. |
| public void |
| CONTENT_NOT_CONSUMED | back to summary |
|---|---|
| public static final Exception CONTENT_NOT_CONSUMED | |
| UPGRADE_CONNECTION_ATTRIBUTE | back to summary |
|---|---|
| public static final String UPGRADE_CONNECTION_ATTRIBUTE Attribute name to be used as a | |
| consumeAvailable | back to summary |
|---|---|
| public Throwable consumeAvailable() | |
| consumeAvailable | back to summary |
|---|---|
| public static Throwable consumeAvailable(HttpStream stream, HttpConfiguration httpConfig) | |
| demand | back to summary |
|---|---|
| public void demand() Demands more content chunks to the underlying implementation. This method is called from the implementation of | |
| getId | back to summary |
|---|---|
public String getId()
| |
| getIdleTimeout | back to summary |
|---|---|
| public long getIdleTimeout() | |
| getTunnelSupport | back to summary |
|---|---|
| public default TunnelSupport getTunnelSupport() | |
| isCommitted | back to summary |
|---|---|
| public boolean isCommitted() | |
| prepareResponse | back to summary |
|---|---|
| public void prepareResponse(HttpFields. 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 default void push(MetaData. Pushes the given
| |
| read | back to summary |
|---|---|
| public Content. Reads a chunk of content, with the same semantic as This method is called from the implementation of
| |
| send | back to summary |
|---|---|
| public void send(MetaData. Send response meta-data and/or data.
| |
| setIdleTimeout | back to summary |
|---|---|
| public void setIdleTimeout(long idleTimeoutMs) | |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Throwable | |
| 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 final String | |
| public long | |
| public Invocable. | |
| public TunnelSupport | |
| public HttpStream | |
| public final boolean | |
| 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 |
| 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. content, Callback The callback to invoke when the send is completed successfully or in failure. callback)Implements org. Send response meta-data and/or data. |
| public void | |
| public void | succeeded()
Overrides default org. Callback invoked when the operation completes. |
| _wrapped | back to summary |
|---|---|
| private final HttpStream _wrapped | |
| Wrapper | back to summary |
|---|---|
| public Wrapper(HttpStream wrapped) | |
| consumeAvailable | back to summary |
|---|---|
| public final Throwable consumeAvailable() Implements org.
| |
| 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 final String getId() Implements org.
| |
| getIdleTimeout | back to summary |
|---|---|
| public long getIdleTimeout() Implements org.
| |
| getInvocationType | back to summary |
|---|---|
| public Invocable. Overrides default org.
| |
| getTunnelSupport | back to summary |
|---|---|
| public TunnelSupport getTunnelSupport() Overrides default org.
| |
| getWrapped | back to summary |
|---|---|
| public HttpStream getWrapped() | |
| isCommitted | back to summary |
|---|---|
| public final boolean isCommitted() 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
| |
| send | back to summary |
|---|---|
| public void send(MetaData. Implements org. Doc from org. Send response meta-data and/or data.
| |
| 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.
| |