WebSocketEngine implementation, which handles server-side handshake, validation and data processing.
org.glassfish.tyrus.core.TyrusWebSocket , org.glassfish.tyrus.core.TyrusEndpointWrapper
| Modifier and Type | Class and Description |
|---|---|
| private static class | TyrusWebSocketEngine.
Endpoint event listener wrapper that allows setting the wrapped endpoint event listener later. |
| private static class | |
| private static class | |
| pack-priv static class | |
| private static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ApplicationEventListener | |
| private static final int | |
| private final ClusterContext | |
| private final ComponentProviderService | |
| private final Set | |
| private static final WebSocketEngine. | |
| public static final String | INCOMING_BUFFER_SIZE
Maximum size of incoming buffer in bytes. |
| private int | |
| private static final Logger | |
| public static final String | MAX_SESSIONS_PER_APP
Maximum number of open sessions per server application. |
| public static final String | MAX_SESSIONS_PER_REMOTE_ADDR
Maximum number of open sessions per unique remote address. |
| private static final TyrusEndpointWrapper. | |
| private static final WebSocketEngine. | |
| public static final String | PARALLEL_BROADCAST_ENABLED
Parallel broadcast support. |
| private final Boolean | |
| private final TyrusEndpointWrapper. | |
| public static final String | TRACING_THRESHOLD
Property used for configuring tracing threshold. |
| public static final String | TRACING_TYPE
Property used for configuring the type of tracing supported by the server. |
| private final DebugContext. | |
| private final DebugContext. | |
| private final WebSocketContainer | |
| public static final String | WSADL_SUPPORT
Wsadl support. |
| Access | Constructor and Description |
|---|---|
| private | TyrusWebSocketEngine(WebSocketContainer
used webSocketContainer, Integer WebSocketContainer instance.maximal incoming buffer size (this engine won't be able to process messages
bigger than this number. If null, default value will be used). incomingBufferSize, ClusterContext cluster context instance. clusterContext, ApplicationEventListener null indicates standalone mode.listener used to collect monitored events. applicationEventListener, final Integer maximal number of open sessions per application. If maxSessionsPerApp, final Integer null, no limit is
applied.maximal number of open sessions per remote address. If maxSessionsPerRemoteAddr, DebugContext.null, no limit is
applied.type of tracing. tracingType,tracing threshold. tracingThreshold,true if parallel broadcast should be enabled, true is default.Create |
| Modifier and Type | Method and Description |
|---|---|
| public static TyrusWebSocketEngine. | Returns: new builder.WebSocketContainer instance. Cannot be null.Create |
| private void | |
| private DebugContext | |
| public ApplicationEventListener | Returns: listener instance.Get |
| pack-priv TyrusEndpointWrapper | |
| public Application | Returns: application representing current set of deployed endpoints.Get |
| private WebSocketEngine. | |
| private static void | |
| private static ProtocolHandler | |
| private void | |
| private void | register(TyrusEndpointWrapper
the endpointWrapper)TyrusEndpointWrapper to register.Registers the specified |
| public void | register(Class<?>
endpoint class to be registered. endpointClass, String context path of the registered endpoint. contextPath)Implements org. Register endpoint class. |
| public void | register(ServerEndpointConfig
server endpoint to be registered. serverConfig, String context path of the registered endpoint. contextPath)Implements org. |
| public void | setIncomingBufferSize(int
buffer size in bytes. incomingBufferSize)
Deprecated
Please use
.
instead.
Set incoming buffer size. |
| public void | unregister(TyrusEndpointWrapper
the endpointWrapper)TyrusEndpointWrapper to un-register.Un-registers the specified |
| public WebSocketEngine. | upgrade(final UpgradeRequest
request to be upgraded. request, final UpgradeResponse response to the upgrade request. response)Implements org. A transport calls this method to upgrade a HTTP request. |