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 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 |
|---|---|
Session |
createSessionForRemoteEndpoint(TyrusWebSocket socket,
String subprotocol,
List<Extension> extensions,
DebugContext debugContext)
Creates a Session based on the
TyrusWebSocket, subprotocols and extensions. |
Object |
doEncode(Session session,
Object message) |
EndpointConfig |
getEndpointConfig()
Get Endpoint configuration.
|
String |
getEndpointPath()
Server-side; Get Endpoint absolute path.
|
String |
toString() |
public 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) throws 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.DeploymentExceptionpublic TyrusEndpointWrapper(Endpoint endpoint, EndpointConfig configuration, ComponentProviderService componentProvider, WebSocketContainer container, String contextPath, ServerEndpointConfig.Configurator configurator, TyrusEndpointWrapper.SessionListener sessionListener, ClusterContext clusterContext, EndpointEventListener endpointEventListener, Boolean parallelBroadcastEnabled) throws 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.DeploymentExceptionpublic Object doEncode(Session session, Object message) throws EncodeException, IOException
EncodeExceptionIOExceptionpublic String getEndpointPath()
public Session createSessionForRemoteEndpoint(TyrusWebSocket socket, String subprotocol, List<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 EndpointConfig getEndpointConfig()
Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.