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.core |
Core classes.
|
org.glassfish.tyrus.core.coder |
Encoder and decoder adapters and built-in implementations.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ClientEndpointConfig
The ClientEndpointConfig is a special kind of endpoint configuration object that contains web socket configuration
information specific only to client endpoints.
|
Modifier and Type | Method and Description |
---|---|
void |
Encoder.init(EndpointConfig config)
This method is called with the endpoint configuration object of the endpoint this encoder is intended for when it
is about to be brought into service.
|
void |
Decoder.init(EndpointConfig config)
This method is called with the endpoint configuration object of the endpoint this decoder is intended for when it
is about to be brought into service.
|
abstract void |
Endpoint.onOpen(Session session,
EndpointConfig config)
Developers must implement this method to be notified when a new conversation has just begun.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ServerEndpointConfig
The ServerEndpointConfig is a special kind of endpoint configuration object that contains web socket configuration
information specific only to server endpoints.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TyrusServerEndpointConfig
Configuration
ServerEndpointConfig enhanced
to offer tyrus specific attributes like maxSessions. |
Modifier and Type | Method and Description |
---|---|
EndpointConfig |
TyrusEndpointWrapper.getEndpointConfig()
Get Endpoint configuration.
|
EndpointConfig |
AnnotatedEndpoint.getEndpointConfig() |
Modifier and Type | Method and Description |
---|---|
<T> Object |
ComponentProviderService.getCoderInstance(Class<T> c,
Session session,
EndpointConfig endpointConfig,
ErrorCollector collector)
|
void |
AnnotatedEndpoint.onOpen(Session session,
EndpointConfig configuration) |
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 |
CoderAdapter.init(EndpointConfig config)
This method does nothing.
|
Copyright © 2012–2019 Oracle Corporation. All rights reserved.