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 AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface LifeCycle
LifeCycle.ListenerNested classes/interfaces inherited from interface ParserListener
ParserListener.WrapperNested classes/interfaces inherited from interface Session
Session.Client, Session.Listener, Session.ServerNested classes/interfaces inherited from interface Session.Client
Session.Client.Listener -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionHTTP3SessionClient(ClientHTTP3Session session, Session.Client.Listener listener, Promise<Session.Client> promise) -
Method Summary
Modifier and TypeMethodDescriptionprotected GoAwayFramenewGoAwayFrame(boolean graceful) protected HTTP3StreamClientnewHTTP3Stream(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.voidonHeaders(long streamId, HeadersFrame frame, boolean wasBlocked) voidonOpen()voidonSettings(SettingsFrame frame) voidwriteControlFrame(Frame frame, Callback callback) voidwriteMessageFrame(long streamId, Frame frame, Callback callback) Methods inherited from class 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, toStringMethods inherited from class 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, updateBeansMethods inherited from class AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Container
getCachedBeans, getEventListenersMethods inherited from interface Dumpable.DumpableContainer
isDumpableMethods inherited from interface Session
getLocalSocketAddress, getRemoteSocketAddress, getStreams, goAway
-
Constructor Details
-
HTTP3SessionClient
public HTTP3SessionClient(ClientHTTP3Session session, Session.Client.Listener listener, Promise<Session.Client> promise)
-
-
Method Details
-
getProtocolSession
- Overrides:
getProtocolSessionin classHTTP3Session
-
onOpen
public void onOpen()- Overrides:
onOpenin classHTTP3Session
-
newHTTP3Stream
- Specified by:
newHTTP3Streamin classHTTP3Session
-
onHeaders
- Specified by:
onHeadersin interfaceParserListener- Overrides:
onHeadersin classHTTP3Session
-
onSettings
- Specified by:
onSettingsin interfaceParserListener- Overrides:
onSettingsin classHTTP3Session
-
newRequest
Description copied from interface:Session.ClientMakes a request by creating a HTTP/3 stream and sending the given HEADERS frame.
- Specified by:
newRequestin 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:
writeControlFramein classHTTP3Session
-
writeMessageFrame
- Specified by:
writeMessageFramein classHTTP3Session
-
newGoAwayFrame
- Overrides:
newGoAwayFramein classHTTP3Session
-