Uses of Interface
org.eclipse.jetty.http2.api.Stream
Package
Description
-
Uses of Stream in org.eclipse.jetty.http2
Modifier and TypeInterfaceDescriptioninterface
The SPI interface for implementing an HTTP/2 stream.Modifier and TypeMethodDescriptionHTTP2Session.newUpgradeStream
(HeadersFrame frame, Stream.Listener listener, Consumer<Throwable> failFn) Creates a new stream allocating a stream id if the given HEADERS frame does not have one.Modifier and TypeMethodDescriptionprotected Stream.Listener
HTTP2Session.notifyNewStream
(Stream stream, HeadersFrame frame) Modifier and TypeMethodDescriptionvoid
HTTP2Session.newStream
(HeadersFrame frame, Promise<Stream> promise, Stream.Listener listener) void
HTTP2Session.newStream
(IStream.FrameList frames, Promise<Stream> promise, Stream.Listener listener) void
ISession.newStream
(IStream.FrameList frames, Promise<Stream> promise, Stream.Listener listener) Sends the given list of frames to create a newStream
.void
HTTP2Session.push
(IStream stream, Promise<Stream> promise, PushPromiseFrame frame, Stream.Listener listener) void
HTTP2Stream.push
(PushPromiseFrame frame, Promise<Stream> promise, Stream.Listener listener) void
ISession.push
(IStream stream, Promise<Stream> promise, PushPromiseFrame frame, Stream.Listener listener) Enqueues the given PUSH_PROMISE frame to be written to the connection. -
Uses of Stream in org.eclipse.jetty.http2.api
Modifier and TypeMethodDescriptionSession.getStream
(int streamId) Retrieves the stream with the givenstreamId
.Modifier and TypeMethodDescriptiondefault CompletableFuture<Stream>
Sends the given DATAframe
.Session.getStreams()
default CompletableFuture<Stream>
Stream.headers
(HeadersFrame frame) Sends the given HEADERSframe
representing an HTTP response.default CompletableFuture<Stream>
Session.newStream
(HeadersFrame frame, Stream.Listener listener) Sends the given HEADERSframe
to create a newStream
.default CompletableFuture<Stream>
Stream.push
(PushPromiseFrame frame, Stream.Listener listener) Sends the given PUSH_PROMISEframe
.Modifier and TypeMethodDescriptiondefault void
Stream.Listener.onBeforeData
(Stream stream) Callback method invoked before notifying the first DATA frame.default void
Callback method invoked after the stream has been closed.void
default void
Callback method invoked when a DATA frame has been received.default void
Stream.Listener.onDataDemanded
(Stream stream, DataFrame frame, Callback callback) Callback method invoked when a DATA frame has been demanded.default void
Stream.Listener.onFailure
(Stream stream, int error, String reason, Throwable failure, Callback callback) Callback method invoked when the stream failed.void
Stream.Listener.Adapter.onHeaders
(Stream stream, HeadersFrame frame) void
Stream.Listener.onHeaders
(Stream stream, HeadersFrame frame) Callback method invoked when a HEADERS frame representing the HTTP response has been received.boolean
Stream.Listener.Adapter.onIdleTimeout
(Stream stream, Throwable x) boolean
Stream.Listener.onIdleTimeout
(Stream stream, Throwable x) Callback method invoked when the stream exceeds its idle timeout.Session.Listener.Adapter.onNewStream
(Stream stream, HeadersFrame frame) Session.Listener.onNewStream
(Stream stream, HeadersFrame frame) Callback method invoked when a new stream is being created upon receiving a HEADERS frame representing an HTTP request.default void
Stream.Listener.onNewStream
(Stream stream) Callback method invoked when a stream is created locally bySession.newStream(HeadersFrame, Promise, Listener)
.Stream.Listener.Adapter.onPush
(Stream stream, PushPromiseFrame frame) Stream.Listener.onPush
(Stream stream, PushPromiseFrame frame) Callback method invoked when a PUSH_PROMISE frame has been received.void
Stream.Listener.Adapter.onReset
(Stream stream, ResetFrame frame) default void
Stream.Listener.onReset
(Stream stream, ResetFrame frame) Callback method invoked when a RST_STREAM frame has been received for this stream.default void
Stream.Listener.onReset
(Stream stream, ResetFrame frame, Callback callback) Callback method invoked when a RST_STREAM frame has been received for this stream.Modifier and TypeMethodDescriptionvoid
Session.newStream
(HeadersFrame frame, Promise<Stream> promise, Stream.Listener listener) Sends the given HEADERSframe
to create a newStream
.void
Stream.push
(PushPromiseFrame frame, Promise<Stream> promise, Stream.Listener listener) Sends the given PUSH_PROMISEframe
. -
Uses of Stream in org.eclipse.jetty.http2.client.http
-
Uses of Stream in org.eclipse.jetty.http2.server
Modifier and TypeMethodDescriptionvoid
HTTP2ServerConnectionFactory.HTTPServerSessionListener.onBeforeData
(Stream stream) void
HTTP2ServerConnectionFactory.HTTPServerSessionListener.onDataDemanded
(Stream stream, DataFrame frame, Callback callback) void
HTTP2ServerConnectionFactory.HTTPServerSessionListener.onFailure
(Stream stream, int error, String reason, Throwable failure, Callback callback) void
HTTP2ServerConnectionFactory.HTTPServerSessionListener.onHeaders
(Stream stream, HeadersFrame frame) boolean
HTTP2ServerConnectionFactory.HTTPServerSessionListener.onIdleTimeout
(Stream stream, Throwable x) HTTP2ServerConnectionFactory.HTTPServerSessionListener.onNewStream
(Stream stream, HeadersFrame frame) HTTP2ServerConnectionFactory.HTTPServerSessionListener.onPush
(Stream stream, PushPromiseFrame frame) void
HTTP2ServerConnectionFactory.HTTPServerSessionListener.onReset
(Stream stream, ResetFrame frame, Callback callback)