| Package | Description |
|---|---|
| jakarta.websocket |
This package contains all the Jakartq WebSocket APIs common to both the client and server side.
|
| jakarta.websocket.server |
This package contains all the Jakarta WebSocket APIs used only by server side applications.
|
| org.glassfish.tyrus.client |
Common Client.
|
| org.glassfish.tyrus.container.jdk.client |
JDK Client container based on JDK 7 NIO framework.
|
| org.glassfish.tyrus.core |
Core classes.
|
| org.glassfish.tyrus.spi |
Tyrus SPI.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
WebSocketContainer.connectToServer(java.lang.Class<?> annotatedEndpointClass,
java.net.URI path)
Connect the supplied annotated endpoint to its server.
|
Session |
WebSocketContainer.connectToServer(java.lang.Class<? extends Endpoint> endpointClass,
ClientEndpointConfig cec,
java.net.URI path)
Connect the supplied programmatic endpoint to its server with the given configuration.
|
Session |
WebSocketContainer.connectToServer(Endpoint endpointInstance,
ClientEndpointConfig cec,
java.net.URI path)
Connect the supplied programmatic client endpoint instance to its server with the given configuration.
|
Session |
WebSocketContainer.connectToServer(java.lang.Object annotatedEndpointInstance,
java.net.URI path)
Connect the supplied annotated endpoint instance to its server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ServerContainer.addEndpoint(java.lang.Class<?> endpointClass)
Deploys the given annotated endpoint into this ServerContainer during the initialization phase of deploying the
application.
|
void |
ServerContainer.addEndpoint(ServerEndpointConfig serverConfig) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<Session> |
ClientManager.asyncConnectToServer(java.lang.Class<?> annotatedEndpointClass,
java.net.URI path)
Non-blocking version of
WebSocketContainer.connectToServer(Class, java.net.URI). |
java.util.concurrent.Future<Session> |
ClientManager.asyncConnectToServer(java.lang.Class<? extends Endpoint> endpointClass,
ClientEndpointConfig cec,
java.net.URI path)
Non-blocking version of
WebSocketContainer.connectToServer(Class, jakarta.websocket.ClientEndpointConfig,
java.net.URI). |
java.util.concurrent.Future<Session> |
ClientManager.asyncConnectToServer(Endpoint endpointInstance,
ClientEndpointConfig cec,
java.net.URI path)
|
java.util.concurrent.Future<Session> |
ClientManager.asyncConnectToServer(java.lang.Object obj,
java.net.URI path)
Non-blocking version of
WebSocketContainer.connectToServer(Object, java.net.URI). |
Session |
ClientManager.connectToServer(java.lang.Class<? extends Endpoint> endpointClass,
ClientEndpointConfig cec,
java.net.URI path) |
Session |
ClientManager.connectToServer(java.lang.Class annotatedEndpointClass,
java.net.URI path) |
Session |
ClientManager.connectToServer(Endpoint endpointInstance,
ClientEndpointConfig cec,
java.net.URI path) |
Session |
ClientManager.connectToServer(java.lang.Object obj,
java.net.URI path) |
| Modifier and Type | Method and Description |
|---|---|
void |
JdkClientContainer.openClientSocket(ClientEndpointConfig cec,
java.util.Map<java.lang.String,java.lang.Object> properties,
ClientEngine clientEngine) |
| Modifier and Type | Method and Description |
|---|---|
DeploymentException |
ErrorCollector.composeComprehensiveException()
Create
DeploymentException with message concatenated from collected exceptions. |
| Modifier and Type | Method and Description |
|---|---|
void |
TyrusWebSocketEngine.register(java.lang.Class<?> endpointClass,
java.lang.String contextPath) |
void |
TyrusWebSocketEngine.register(ServerEndpointConfig serverConfig,
java.lang.String contextPath) |
| Constructor and Description |
|---|
TyrusEndpointWrapper(java.lang.Class<? extends Endpoint> endpointClass,
EndpointConfig configuration,
ComponentProviderService componentProvider,
WebSocketContainer container,
java.lang.String contextPath,
ServerEndpointConfig.Configurator configurator,
TyrusEndpointWrapper.SessionListener sessionListener,
ClusterContext clusterContext,
EndpointEventListener endpointEventListener,
java.lang.Boolean parallelBroadcastEnabled)
Create
TyrusEndpointWrapper for class that extends Endpoint. |
TyrusEndpointWrapper(Endpoint endpoint,
EndpointConfig configuration,
ComponentProviderService componentProvider,
WebSocketContainer container,
java.lang.String contextPath,
ServerEndpointConfig.Configurator configurator,
TyrusEndpointWrapper.SessionListener sessionListener,
ClusterContext clusterContext,
EndpointEventListener endpointEventListener,
java.lang.Boolean parallelBroadcastEnabled)
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClientContainer.openClientSocket(ClientEndpointConfig cec,
java.util.Map<java.lang.String,java.lang.Object> properties,
ClientEngine clientEngine)
Open client socket - connect to endpoint specified with
url parameter. |
void |
WebSocketEngine.register(java.lang.Class<?> endpointClass,
java.lang.String contextPath)
Register endpoint class.
|
void |
WebSocketEngine.register(ServerEndpointConfig serverConfig,
java.lang.String contextPath)
Register
ServerEndpointConfig. |
void |
ServerContainer.start(java.lang.String rootPath,
int port)
Start the server.
|
Copyright © 2012–2020 Oracle Corporation. All rights reserved.