public class TyrusWebSocketEngine extends Object implements WebSocketEngine
WebSocketEngine implementation, which handles server-side handshake, validation and data processing.TyrusWebSocket,
TyrusEndpointWrapper| Modifier and Type | Class and Description |
|---|---|
static class |
TyrusWebSocketEngine.TyrusWebSocketEngineBuilder
TyrusWebSocketEngine builder. |
WebSocketEngine.UpgradeInfo, WebSocketEngine.UpgradeStatus| Modifier and Type | Field and Description |
|---|---|
static String |
INCOMING_BUFFER_SIZE
Maximum size of incoming buffer in bytes.
|
static String |
MAX_SESSIONS_PER_APP
Maximum number of open sessions per server application.
|
static String |
MAX_SESSIONS_PER_REMOTE_ADDR
Maximum number of open sessions per unique remote address.
|
static String |
WSADL_SUPPORT
Wsadl support.
|
public static final String INCOMING_BUFFER_SIZE
Integer or its primitive alternative.
Default value is 4194315, which means that TyrusWebSocketEngine is by default
capable of processing messages up to 4 MB.public static final String MAX_SESSIONS_PER_APP
Integer or its primitive alternative. Negative values
and zero are ignored.
The number of open sessions per application is not limited by default.public static final String MAX_SESSIONS_PER_REMOTE_ADDR
Integer or its primitive alternative. Negative values
and zero are ignored.
The number of open sessions per remote address is not limited by default.@Beta public static final String WSADL_SUPPORT
"true" means that the feature is enable, "false" that the feature
is disabled.
Default value is "false";public static TyrusWebSocketEngine.TyrusWebSocketEngineBuilder builder(WebSocketContainer webSocketContainer)
TyrusWebSocketEngine.TyrusWebSocketEngineBuilder
instance based on passed WebSocketContainer.webSocketContainer - WebSocketContainer instance. Cannot be null.public WebSocketEngine.UpgradeInfo upgrade(UpgradeRequest request, UpgradeResponse response)
WebSocketEngineupgrade in interface WebSocketEnginepublic void setIncomingBufferSize(int incomingBufferSize)
TyrusWebSocketEngine.TyrusWebSocketEngineBuilder.incomingBufferSize(Integer) instead.incomingBufferSize - buffer size in bytes.public void register(Class<?> endpointClass, String contextPath) throws DeploymentException
register in interface WebSocketEngineDeploymentExceptionpublic void register(ServerEndpointConfig serverConfig, String contextPath) throws DeploymentException
register in interface WebSocketEngineDeploymentExceptionpublic void unregister(TyrusEndpointWrapper endpointWrapper)
TyrusEndpointWrapper with the
WebSocketEngine.endpointWrapper - the TyrusEndpointWrapper to un-register.public ApplicationEventListener getApplicationEventListener()
ApplicationEventListener related to current
TyrusWebSocketEngine instance.@Beta public Application getWsadlApplication()
Application representing current set of deployed endpoints.Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.