Package org.eclipse.jetty.http3.client
Class HTTP3SessionClient
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.http3.HTTP3Session
org.eclipse.jetty.http3.client.HTTP3SessionClient
- All Implemented Interfaces:
Session
,Session.Client
,ParserListener
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.http3.parser.ParserListener
ParserListener.Wrapper
Nested classes/interfaces inherited from interface org.eclipse.jetty.http3.api.Session
Session.Client, Session.Listener, Session.Server
Nested classes/interfaces inherited from interface org.eclipse.jetty.http3.api.Session.Client
Session.Client.Listener
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHTTP3SessionClient
(ClientHTTP3Session session, Session.Client.Listener listener, Promise<Session.Client> promise) -
Method Summary
Modifier and TypeMethodDescriptionprotected GoAwayFrame
newGoAwayFrame
(boolean graceful) protected HTTP3StreamClient
newHTTP3Stream
(QuicStreamEndPoint endPoint, boolean local) newRequest
(HeadersFrame frame, Stream.Client.Listener listener) Makes a request by creating a HTTP/3 stream and sending the given HEADERS frame.void
onHeaders
(long streamId, HeadersFrame frame, boolean wasBlocked) void
onOpen()
void
onSettings
(SettingsFrame frame) void
writeControlFrame
(Frame frame, Callback callback) void
writeMessageFrame
(long streamId, Frame frame, Callback callback) Methods inherited from class org.eclipse.jetty.http3.HTTP3Session
createStream, dump, getIdleTimeout, getListener, getLocalSocketAddress, getMaxLocalStreams, getOrCreateStream, getRemoteSocketAddress, getStream, getStreamIdleTimeout, getStreams, goAway, inwardClose, isClosed, onClose, onData, onGoAway, onIdleTimeout, onPreface, onSessionFailure, onStreamFailure, removeStream, setStreamIdleTimeout, shutdown, toString
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListeners
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
Methods inherited from interface org.eclipse.jetty.http3.api.Session
getLocalSocketAddress, getRemoteSocketAddress, getStreams, goAway
-
Constructor Details
-
HTTP3SessionClient
public HTTP3SessionClient(ClientHTTP3Session session, Session.Client.Listener listener, Promise<Session.Client> promise)
-
-
Method Details
-
getProtocolSession
- Overrides:
getProtocolSession
in classHTTP3Session
-
onOpen
public void onOpen()- Overrides:
onOpen
in classHTTP3Session
-
newHTTP3Stream
- Specified by:
newHTTP3Stream
in classHTTP3Session
-
onHeaders
- Specified by:
onHeaders
in interfaceParserListener
- Overrides:
onHeaders
in classHTTP3Session
-
onSettings
- Specified by:
onSettings
in interfaceParserListener
- Overrides:
onSettings
in classHTTP3Session
-
newRequest
Description copied from interface:Session.Client
Makes a request by creating a HTTP/3 stream and sending the given HEADERS frame.
- Specified by:
newRequest
in interfaceSession.Client
- Parameters:
frame
- the HEADERS frame containing the HTTP request headerslistener
- the listener that gets notified of stream events- Returns:
- a CompletableFuture that is notified of the stream creation
-
writeControlFrame
- Specified by:
writeControlFrame
in classHTTP3Session
-
writeMessageFrame
- Specified by:
writeMessageFrame
in classHTTP3Session
-
newGoAwayFrame
- Overrides:
newGoAwayFrame
in classHTTP3Session
-