This should be specific to a JVM if run in a standalone mode. or specific to a WebAppContext if running on the Jetty server.
| Modifier and Type | Field and Description |
|---|---|
| protected WebSocketCoreClient | |
| protected Function | |
| private final JakartaWebSocketClientFrameHandlerFactory | |
| private static final Logger | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | JakartaWebSocketClientContainer(final HttpClient
the HttpClient instance to use httpClient)Create a |
| public | |
| public | JakartaWebSocketClientContainer(WebSocketComponents components, Function<WebSocketComponents, WebSocketCoreClient> coreClientFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| private CompletableFuture | Returns: the future for the session, available on success of connectthe upgrade request information upgradeRequest)Connect to remote websocket endpoint |
| private Session | |
| public Session | connectToServer(final Class<? extends Endpoint>
the programmatic client endpoint class endpointClass, final ClientEndpointConfig Endpoint.the configuration used to configure the programmatic endpoint. providedConfig, URI the complete path to the server endpoint. path)Implements jakarta. Connect the supplied programmatic endpoint to its server with the given configuration. |
| public Session | connectToServer(final Class<?>
the annotated websocket client endpoint. annotatedEndpointClass, final URI the complete path to the server endpoint. path)Implements jakarta. Connect the supplied annotated endpoint to its server. |
| public Session | connectToServer(final Endpoint
the programmatic client endpoint instance endpoint, final ClientEndpointConfig Endpoint.the configuration used to configure the programmatic endpoint. providedConfig, final URI the complete path to the server endpoint. path)Implements jakarta. Connect the supplied programmatic client endpoint instance to its server with the given configuration. |
| public Session | connectToServer(Object
the annotated websocket client endpoint instance. endpoint, URI the complete path to the server endpoint. path)Implements jakarta. Connect the supplied annotated endpoint instance to its server. |
| public static Throwable | |
| protected void | |
| protected void | |
| protected void | doStart()
Overrides org. Starts the managed lifecycle beans in the order they were added. |
| protected void | doStop()
Overrides org. Stops the managed lifecycle beans in the reverse order they were added. |
| private ClientEndpointConfig | |
| public Object | |
| public Executor | |
| public JakartaWebSocketFrameHandlerFactory | |
| protected HttpClient | |
| protected WebSocketCoreClient | |
| private <T> T | |
| public static void |
| coreClient | back to summary |
|---|---|
| protected WebSocketCoreClient coreClient | |
| coreClientFactory | back to summary |
|---|---|
| protected Function<WebSocketComponents, WebSocketCoreClient> coreClientFactory | |
| frameHandlerFactory | back to summary |
|---|---|
| private final JakartaWebSocketClientFrameHandlerFactory frameHandlerFactory | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| SHUTDOWN_MAP | back to summary |
|---|---|
| private static final Map<ClassLoader, ContainerLifeCycle> SHUTDOWN_MAP | |
| JakartaWebSocketClientContainer | back to summary |
|---|---|
| public JakartaWebSocketClientContainer() | |
| JakartaWebSocketClientContainer | back to summary |
|---|---|
| public JakartaWebSocketClientContainer(final HttpClient httpClient) Create a
| |
| JakartaWebSocketClientContainer | back to summary |
|---|---|
| public JakartaWebSocketClientContainer(WebSocketComponents components) | |
| JakartaWebSocketClientContainer | back to summary |
|---|---|
| public JakartaWebSocketClientContainer(WebSocketComponents components, Function<WebSocketComponents, WebSocketCoreClient> coreClientFactory) | |
| connect | back to summary |
|---|---|
| private CompletableFuture Connect to remote websocket endpoint
| |
| connect | back to summary |
|---|---|
| private Session connect(ConfiguredEndpoint configuredEndpoint, URI destURI) throws IOException, DeploymentException | |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(final Class<? extends Endpoint> endpointClass, final ClientEndpointConfig providedConfig, URI path) throws DeploymentException, IOException Implements jakarta. Doc from jakarta. Connect the supplied programmatic endpoint to its server with the given configuration. This method blocks until the connection is established, or throws an error if the connection could not be made.
| |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(final Class<?> annotatedEndpointClass, final URI path) throws DeploymentException, IOException Implements jakarta. Doc from jakarta. Connect the supplied annotated endpoint to its server. The supplied object must be a class decorated with the
class level
| |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(final Endpoint endpoint, final ClientEndpointConfig providedConfig, final URI path) throws DeploymentException, IOException Implements jakarta. Doc from jakarta. Connect the supplied programmatic client endpoint instance to its server with the given configuration. This
method blocks until the connection is established, or throws an error if the connection could not be made. If the
developer uses this method to deploy the client endpoint, services like dependency injection that are supported,
for example, when the implementation is part of the Java EE platform may not be available. If the client endpoint
uses dependency injection, use
| |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(Object endpoint, URI path) throws DeploymentException, IOException Implements jakarta. Doc from jakarta. Connect the supplied annotated endpoint instance to its server. The supplied object must be a class decorated
with the class level
| |
| convertCause | back to summary |
|---|---|
| public static Throwable convertCause(Throwable error) | |
| doClientStart | back to summary |
|---|---|
| protected void doClientStart() | |
| doClientStop | back to summary |
|---|---|
| protected void doClientStop() | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. Doc from org. Starts the managed lifecycle beans in the order they were added.
| |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception Overrides org. Doc from org. Stops the managed lifecycle beans in the reverse order they were added.
| |
| getAnnotatedConfig | back to summary |
|---|---|
| private ClientEndpointConfig getAnnotatedConfig(Object endpoint) throws DeploymentException | |
| getContextHandler | back to summary |
|---|---|
| public Object getContextHandler() | |
| getExecutor | back to summary |
|---|---|
| public Executor getExecutor() Implements abstract org.
| |
| getFrameHandlerFactory | back to summary |
|---|---|
| public JakartaWebSocketFrameHandlerFactory getFrameHandlerFactory() Implements abstract org.
| |
| getHttpClient | back to summary |
|---|---|
| protected HttpClient getHttpClient() | |
| getWebSocketCoreClient | back to summary |
|---|---|
| protected WebSocketCoreClient getWebSocketCoreClient() | |
| newEndpoint | back to summary |
|---|---|
| private <T> T newEndpoint(Class<T> endpointClass) throws DeploymentException | |
| setShutdownContainer | back to summary |
|---|---|
| public static void setShutdownContainer(ContainerLifeCycle container) | |