public class TyrusEndpointWrapper
extends java.lang.Object
There is one 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(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 |
|---|---|
Session |
createSessionForRemoteEndpoint(TyrusWebSocket socket,
java.lang.String subprotocol,
java.util.List<Extension> extensions,
DebugContext debugContext)
Creates a Session based on the
TyrusWebSocket, subprotocols and extensions. |
java.lang.Object |
doEncode(Session session,
java.lang.Object message) |
EndpointConfig |
getEndpointConfig()
Get Endpoint configuration.
|
java.lang.String |
getEndpointPath()
Server-side; Get Endpoint absolute path.
|
java.lang.String |
toString() |
public 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) 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.contextPath - context path of the application.configurator - endpoint configurator.sessionListener - session listener.clusterContext - cluster context instance. null indicates standalone mode.endpointEventListener - endpoint event listener.parallelBroadcastEnabled - true if parallel broadcast should be enabled, true is default.DeploymentException - when the endpoint is not valid.public 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) throws DeploymentException
endpoint - endpoint instance for which the wrapper is created.configuration - endpoint configuration.componentProvider - component provider.container - container where the wrapper is running.contextPath - context path of the application.configurator - endpoint configurator.sessionListener - session listener.clusterContext - cluster context instance. null indicates standalone mode.endpointEventListener - endpoint event listener.parallelBroadcastEnabled - true if parallel broadcast should be enabled, true is default.DeploymentException - when the endpoint is not valid.public java.lang.Object doEncode(Session session, java.lang.Object message) throws EncodeException, java.io.IOException
EncodeExceptionjava.io.IOExceptionpublic java.lang.String getEndpointPath()
public Session createSessionForRemoteEndpoint(TyrusWebSocket socket, java.lang.String subprotocol, java.util.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()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2012–2025 Oracle Corporation. All rights reserved.