public class TyrusEndpointWrapper extends Object
TyrusEndpointWrapper for each application class, which handles all the methods.| Modifier and Type | Class and Description |
|---|---|
static class |
TyrusEndpointWrapper.SessionListener
Session listener.
|
| Constructor and Description |
|---|
TyrusEndpointWrapper(Class<? extends javax.websocket.Endpoint> endpointClass,
javax.websocket.EndpointConfig configuration,
ComponentProviderService componentProvider,
javax.websocket.WebSocketContainer container,
String contextPath,
javax.websocket.server.ServerEndpointConfig.Configurator configurator,
TyrusEndpointWrapper.SessionListener sessionListener,
ClusterContext clusterContext,
EndpointEventListener endpointEventListener,
Boolean parallelBroadcastEnabled)
Create
TyrusEndpointWrapper for class that extends Endpoint. |
TyrusEndpointWrapper(javax.websocket.Endpoint endpoint,
javax.websocket.EndpointConfig configuration,
ComponentProviderService componentProvider,
javax.websocket.WebSocketContainer container,
String contextPath,
javax.websocket.server.ServerEndpointConfig.Configurator configurator,
TyrusEndpointWrapper.SessionListener sessionListener,
ClusterContext clusterContext,
EndpointEventListener endpointEventListener,
Boolean parallelBroadcastEnabled)
|
| Modifier and Type | Method and Description |
|---|---|
javax.websocket.Session |
createSessionForRemoteEndpoint(TyrusWebSocket socket,
String subprotocol,
List<javax.websocket.Extension> extensions,
DebugContext debugContext)
Creates a Session based on the
TyrusWebSocket, subprotocols and extensions. |
Object |
doEncode(javax.websocket.Session session,
Object message) |
javax.websocket.EndpointConfig |
getEndpointConfig()
Get Endpoint configuration.
|
String |
getEndpointPath()
Server-side; Get Endpoint absolute path.
|
String |
toString() |
public TyrusEndpointWrapper(Class<? extends javax.websocket.Endpoint> endpointClass, javax.websocket.EndpointConfig configuration, ComponentProviderService componentProvider, javax.websocket.WebSocketContainer container, String contextPath, javax.websocket.server.ServerEndpointConfig.Configurator configurator, TyrusEndpointWrapper.SessionListener sessionListener, ClusterContext clusterContext, EndpointEventListener endpointEventListener, Boolean parallelBroadcastEnabled) throws javax.websocket.DeploymentException
TyrusEndpointWrapper for class that extends Endpoint.endpointClass - endpoint class for which the wrapper is created.configuration - endpoint configuration.componentProvider - component provider.container - container where the wrapper is running.clusterContext - cluster context instance. null indicates standalone mode.endpointEventListener - endpoint event listener.parallelBroadcastEnabled - true if parallel broadcast should be enabled, true is default.javax.websocket.DeploymentExceptionpublic TyrusEndpointWrapper(javax.websocket.Endpoint endpoint,
javax.websocket.EndpointConfig configuration,
ComponentProviderService componentProvider,
javax.websocket.WebSocketContainer container,
String contextPath,
javax.websocket.server.ServerEndpointConfig.Configurator configurator,
TyrusEndpointWrapper.SessionListener sessionListener,
ClusterContext clusterContext,
EndpointEventListener endpointEventListener,
Boolean parallelBroadcastEnabled)
throws javax.websocket.DeploymentException
endpoint - endpoint instance for which the wrapper is created.configuration - endpoint configuration.componentProvider - component provider.container - container where the wrapper is running.clusterContext - cluster context instance. null indicates standalone mode.endpointEventListener - endpoint event listener.parallelBroadcastEnabled - true if parallel broadcast should be enabled, true is default.javax.websocket.DeploymentExceptionpublic Object doEncode(javax.websocket.Session session, Object message) throws javax.websocket.EncodeException, IOException
javax.websocket.EncodeExceptionIOExceptionpublic String getEndpointPath()
public javax.websocket.Session createSessionForRemoteEndpoint(TyrusWebSocket socket, String subprotocol, List<javax.websocket.Extension> extensions, DebugContext debugContext)
TyrusWebSocket, subprotocols and extensions.socket - the other end of the connection.subprotocol - used.extensions - extensions used.debugContext - debug context.Session representing the connection.public javax.websocket.EndpointConfig getEndpointConfig()
Copyright © 2012–2019 Oracle Corporation. All rights reserved.