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
,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, Dumpable.DumpAppendable
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
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
ConstructorsConstructorDescriptionHTTP3SessionClient
(Scheduler scheduler, org.eclipse.jetty.http3.client.internal.ClientHTTP3Session session, Session.Client.Listener listener, Promise.Invocable<Session.Client> promise) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.http3.client.internal.ClientHTTP3Session
protected GoAwayFrame
newGoAwayFrame
(boolean graceful) protected org.eclipse.jetty.http3.client.internal.HTTP3StreamClient
newHTTP3Stream
(StreamEndPoint endPoint, boolean local) void
newRequest
(HeadersFrame frame, Stream.Client.Listener listener, Promise.Invocable<Stream> promise) Makes a request by creating an HTTP/3 stream and sending the given HEADERS frame.protected void
onHeaders
(long streamId, HeadersFrame frame, boolean wasBlocked) void
onOpen()
void
onSettings
(SettingsFrame frame) void
writeControlFrame
(Frame frame, Callback callback) void
writeMessageFrame
(StreamEndPoint streamEndPoint, Frame frame, Callback callback) Methods inherited from class org.eclipse.jetty.http3.HTTP3Session
close, createStream, dump, getIdleTimeout, getListener, getLocalSocketAddress, getMaxLocalStreams, getParserListener, getRemoteSocketAddress, getStream, getStreamIdleTimeout, getStreams, goAway, isClosed, onClose, onData, onGoAway, onIdleTimeout, onPreface, onSessionFailure, onStreamFailure, 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(Scheduler scheduler, org.eclipse.jetty.http3.client.internal.ClientHTTP3Session session, Session.Client.Listener listener, Promise.Invocable<Session.Client> promise)
-
-
Method Details
-
getProtocolSession
public org.eclipse.jetty.http3.client.internal.ClientHTTP3Session getProtocolSession()- Overrides:
getProtocolSession
in classHTTP3Session
-
onOpen
public void onOpen()- Overrides:
onOpen
in classHTTP3Session
-
newHTTP3Stream
protected org.eclipse.jetty.http3.client.internal.HTTP3StreamClient newHTTP3Stream(StreamEndPoint endPoint, boolean local) - Specified by:
newHTTP3Stream
in classHTTP3Session
-
onHeaders
- Overrides:
onHeaders
in classHTTP3Session
-
onSettings
- Overrides:
onSettings
in classHTTP3Session
-
newRequest
public void newRequest(HeadersFrame frame, Stream.Client.Listener listener, Promise.Invocable<Stream> promise) Description copied from interface:Session.Client
Makes a request by creating an 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 eventspromise
- aPromise.Invocable
that is notified of the stream creation
-
writeControlFrame
- Specified by:
writeControlFrame
in classHTTP3Session
-
writeMessageFrame
- Specified by:
writeMessageFrame
in classHTTP3Session
-
newGoAwayFrame
- Overrides:
newGoAwayFrame
in classHTTP3Session
-