Class JettyHttp3AsyncSupport
- All Implemented Interfaces:
AsyncSupport<AtmosphereResourceImpl>
AsyncSupport implementation.
Extends JSR356AsyncSupport and adds an HTTP/3 (QUIC/UDP) connector
to the embedded Jetty server when jetty-http3-server is on the classpath.
Uses QuicheServerConnector with HTTP3ServerConnectionFactory
to add a QUIC/UDP connector alongside the existing HTTP/1.1 and/or HTTP/2
connectors on the Jetty server.
Jetty 12.1 moved the QUIC server implementation out of
jetty-quic-server into jetty-quic-quiche-server, renaming
QuicServerConnector to QuicheServerConnector and
ServerQuicConfiguration to QuicheServerQuicConfiguration. The
SslContextFactory.Server also moved from the
configuration onto the connector, and the connection factory no longer takes the
QUIC configuration.
The HTTP/3 connector uses a self-signed certificate by default for
development. For production, configure a proper keystore via
atmosphere.http3.keyStorePath and atmosphere.http3.keyStorePassword
init parameters.
The HTTP/3 port defaults to 4443 but can be overridden via the
atmosphere.http3.port init parameter.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.atmosphere.container.JSR356AsyncSupport
JSR356AsyncSupport.AtmosphereConfigurator, JSR356AsyncSupport.QuarkusAtmosphereConfigurator -
Field Summary
Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor
cancelledAction, config, timedoutAction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn "jakarta.servlet".booleanReturn true if this implementation supports WebTransport over HTTP/3.Methods inherited from class org.atmosphere.container.JSR356AsyncSupport
supportWebSocketMethods inherited from class org.atmosphere.container.Servlet30CometSupport
action, cancelled, complete, endAsyncContext, serviceMethods inherited from class org.atmosphere.cpr.AsynchronousProcessor
allowSessionTimeoutRemoval, completeLifecycle, endRequest, init, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, suspended, timedout
-
Constructor Details
-
JettyHttp3AsyncSupport
-
-
Method Details
-
supportWebTransport
public boolean supportWebTransport()Description copied from interface:AsyncSupportReturn true if this implementation supports WebTransport over HTTP/3.- Returns:
- true if supported
-
getContainerName
Description copied from class:Servlet30CometSupportReturn "jakarta.servlet".- Specified by:
getContainerNamein interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
getContainerNamein classJSR356AsyncSupport- Returns:
- "jakarta.servlet"
-