Package | Description |
---|---|
javax.websocket |
This package contains all the WebSocket APIs common to both the client and server side.
|
javax.websocket.server |
This package contains all the WebSocket APIs used only by server side applications.
|
org.glassfish.tyrus.client |
Common Client.
|
org.glassfish.tyrus.container.grizzly.client |
Grizzly Client container.
|
org.glassfish.tyrus.core |
Core classes.
|
org.glassfish.tyrus.server |
Server implementation.
|
org.glassfish.tyrus.spi |
Tyrus SPI.
|
Modifier and Type | Method and Description |
---|---|
Session |
WebSocketContainer.connectToServer(Class<?> annotatedEndpointClass,
URI path)
Connect the supplied annotated endpoint to its server.
|
Session |
WebSocketContainer.connectToServer(Class<? extends Endpoint> endpointClass,
ClientEndpointConfig cec,
URI path)
Connect the supplied programmatic endpoint to its server with the given configuration.
|
Session |
WebSocketContainer.connectToServer(Endpoint endpointInstance,
ClientEndpointConfig cec,
URI path)
Connect the supplied programmatic client endpoint instance to its server with the given configuration.
|
Session |
WebSocketContainer.connectToServer(Object annotatedEndpointInstance,
URI path)
Connect the supplied annotated endpoint instance to its server.
|
Modifier and Type | Method and Description |
---|---|
void |
ServerContainer.addEndpoint(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 |
---|---|
void |
GrizzlyClientSocket.connect()
Performs connect to server endpoint.
|
void |
GrizzlyClientContainer.openClientSocket(ClientEndpointConfig cec,
Map<String,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(Class<?> endpointClass,
String contextPath) |
void |
TyrusWebSocketEngine.register(ServerEndpointConfig serverConfig,
String contextPath) |
Constructor and Description |
---|
TyrusEndpointWrapper(Class<? extends Endpoint> endpointClass,
EndpointConfig configuration,
ComponentProviderService componentProvider,
WebSocketContainer container,
String contextPath,
ServerEndpointConfig.Configurator configurator,
TyrusEndpointWrapper.SessionListener sessionListener,
ClusterContext clusterContext,
EndpointEventListener endpointEventListener,
Boolean parallelBroadcastEnabled)
Create
TyrusEndpointWrapper for class that extends Endpoint . |
TyrusEndpointWrapper(Endpoint endpoint,
EndpointConfig configuration,
ComponentProviderService componentProvider,
WebSocketContainer container,
String contextPath,
ServerEndpointConfig.Configurator configurator,
TyrusEndpointWrapper.SessionListener sessionListener,
ClusterContext clusterContext,
EndpointEventListener endpointEventListener,
Boolean parallelBroadcastEnabled)
|
Modifier and Type | Method and Description |
---|---|
void |
TyrusServerContainer.addEndpoint(Class<?> endpointClass) |
void |
TyrusServerContainer.addEndpoint(ServerEndpointConfig serverEndpointConfig) |
Future<Session> |
TyrusServerContainer.asyncConnectToServer(Class<?> annotatedEndpointClass,
URI path)
Non-blocking version of
WebSocketContainer.connectToServer(Class, java.net.URI) . |
Future<Session> |
TyrusServerContainer.asyncConnectToServer(Class<? extends Endpoint> endpointClass,
ClientEndpointConfig cec,
URI path)
Non-blocking version of
WebSocketContainer.connectToServer(Class,
javax.websocket.ClientEndpointConfig, java.net.URI) . |
Future<Session> |
TyrusServerContainer.asyncConnectToServer(Endpoint endpointInstance,
ClientEndpointConfig cec,
URI path)
|
Future<Session> |
TyrusServerContainer.asyncConnectToServer(Object obj,
URI path)
Non-blocking version of
WebSocketContainer.connectToServer(Object, java.net.URI) . |
Session |
TyrusServerContainer.connectToServer(Class<? extends Endpoint> endpointClass,
ClientEndpointConfig cec,
URI path) |
Session |
TyrusServerContainer.connectToServer(Class annotatedEndpointClass,
URI path) |
Session |
TyrusServerContainer.connectToServer(Endpoint endpointInstance,
ClientEndpointConfig cec,
URI path) |
Session |
TyrusServerContainer.connectToServer(Object annotatedEndpointInstance,
URI path) |
abstract void |
TyrusServerContainer.register(Class<?> endpointClass) |
abstract void |
TyrusServerContainer.register(ServerEndpointConfig serverEndpointConfig) |
void |
Server.start()
Start the server.
|
void |
TyrusServerContainer.start(String rootPath,
int port)
Start the container.
|
Modifier and Type | Method and Description |
---|---|
void |
ClientContainer.openClientSocket(ClientEndpointConfig cec,
Map<String,Object> properties,
ClientEngine clientEngine)
Open client socket - connect to endpoint specified with
url parameter. |
void |
WebSocketEngine.register(Class<?> endpointClass,
String contextPath)
Register endpoint class.
|
void |
WebSocketEngine.register(ServerEndpointConfig serverConfig,
String contextPath)
Register
ServerEndpointConfig . |
void |
ServerContainer.start(String rootPath,
int port)
Start the server.
|
Copyright © 2012–2019 Oracle Corporation. All rights reserved.