| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final RemoteEndpoint. | |
| private final RemoteEndpoint. | |
| private final ClusterContext | |
| private final String | |
| private final Map | |
| private final TyrusEndpointWrapper | |
| private final String | |
| private static final Integer |
| Access | Constructor and Description |
|---|---|
| public | RemoteSession(final String
session id. sessionId, final ClusterContext cluster context. clusterContext, final Map<RemoteSession.distributed property map. distributedPropertyMap,used just to get encoders/decoders. endpointWrapper, final Session used just to get encoders/decoders. session)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addMessageHandler(MessageHandler
nothing. handler)Implements jakarta. This method is not supported on |
| public <T> void | addMessageHandler(Class<T>
nothing. clazz, MessageHandler.nothing. handlerImplements jakarta. This method is not supported on |
| public <T> void | addMessageHandler(Class<T>
nothing. clazz, MessageHandler.nothing. handlerImplements jakarta. This method is not supported on |
| public void | close()
Implements jakarta. Close the current conversation with a normal status code and no reason phrase. |
| public void | close(CloseReason
the reason for the closure. closeReason)Implements jakarta. Close the current conversation, giving a reason for the closure. |
| public RemoteEndpoint. | Returns: the remote endpoint representation.Implements jakarta. Get a reference a |
| public RemoteEndpoint. | Returns: the remote endpoint representation.Implements jakarta. Get a reference a |
| public WebSocketContainer | Returns: nothing.Implements jakarta. This method is not supported on |
| public Map | getDistributedProperties()
Implements org. Get distributed properties. |
| public String | Returns: the unique identifier for this session instance.Implements jakarta. Get a string containing the unique identifier assigned to this session. |
| public int | Returns: the maximum binary message size that can be buffered.Implements jakarta. Get the maximum length of incoming binary messages that this Session can buffer. |
| public long | Returns: the timeout in milliseconds.Implements jakarta. Get the number of milliseconds before this conversation may be closed by the container if it is inactive, i.e. no messages are either sent or received in that time. |
| public int | Returns: the maximum text message size that can be buffered.Implements jakarta. Get the maximum length of incoming text messages that this Session can buffer. |
| public Set | Returns: nothing.Implements jakarta. This method is not supported on |
| public List | Returns: the negotiated extensions.Implements jakarta. Get the list of extensions currently in use for this conversation. |
| public String | Returns: the negotiated subprotocol, or the empty string if there isn't one.Implements jakarta. Get the sub protocol agreed during the websocket handshake for this conversation. |
| public Set | Returns: nothing.Implements jakarta. This method is not supported on |
| public Map | Returns: the unmodifiable map of path parameters. The key of the map is the parameter name, the values in the map are the parameter values.Implements jakarta. Get a map of the path parameter names and values used associated with the request this session was opened under. |
| public String | Returns: the protocol version.Implements jakarta. Get the version of the websocket protocol currently being used. |
| public String | Returns: the query string.Implements jakarta. Get the query string associated with the request this session was opened under. |
| public Map | Returns: the unmodifiable map of the request parameters.Implements jakarta. Get the request parameters associated with the request this session was opened under. |
| public URI | Returns: the request URI.Implements jakarta. Get the |
| public Principal | Returns: the user principal.Implements jakarta. Get the authenticated user for this session or |
| public Map | Returns: nothing.Implements jakarta. This method is not supported on |
| public boolean | Returns: true when the underlying socket is open, false otherwise.Implements jakarta. Get the information about session state. |
| public boolean | Returns: true when the underlying socket is using a secure transport, false otherwise.Implements jakarta. Get the information about secure transport. |
| public void | removeMessageHandler(MessageHandler
nothing. handler)Implements jakarta. This method is not supported on |
| public void | setMaxBinaryMessageBufferSize(int
nothing. length)Implements jakarta. This method is not supported on |
| public void | setMaxIdleTimeout(long
nothing. milliseconds)Implements jakarta. This method is not supported on |
| public void | setMaxTextMessageBufferSize(int
nothing. length)Implements jakarta. This method is not supported on |
| public String |
| asyncRemote | back to summary |
|---|---|
| private final RemoteEndpoint. | |
| basicRemote | back to summary |
|---|---|
| private final RemoteEndpoint. | |
| clusterContext | back to summary |
|---|---|
| private final ClusterContext clusterContext | |
| connectionId | back to summary |
|---|---|
| private final String connectionId | |
| distributedPropertyMap | back to summary |
|---|---|
| private final Map<RemoteSession. | |
| endpointWrapper | back to summary |
|---|---|
| private final TyrusEndpointWrapper endpointWrapper | |
| sessionId | back to summary |
|---|---|
| private final String sessionId | |
| SYNC_SEND_TIMEOUT | back to summary |
|---|---|
| private static final Integer SYNC_SEND_TIMEOUT | |
| RemoteSession | back to summary |
|---|---|
| public RemoteSession(final String sessionId, final ClusterContext clusterContext, final Map<RemoteSession. Constructor.
| |
| addMessageHandler | back to summary |
|---|---|
| public void addMessageHandler(MessageHandler handler) throws IllegalStateException Implements jakarta. This method is not supported on
| |
| addMessageHandler | back to summary |
|---|---|
| public <T> void addMessageHandler(Class<T> clazz, MessageHandler. Implements jakarta. This method is not supported on
| |
| addMessageHandler | back to summary |
|---|---|
| public <T> void addMessageHandler(Class<T> clazz, MessageHandler. Implements jakarta. This method is not supported on
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements jakarta. Close the current conversation with a normal status code and no reason phrase.
| |
| close | back to summary |
|---|---|
| public void close(CloseReason closeReason) throws IOException Implements jakarta. Close the current conversation, giving a reason for the closure. The close
call causes the implementation to attempt notify the client of the close as
soon as it can. This may cause the sending of unsent messages immediately
prior to the close notification. After the close notification has been sent
the implementation notifies the endpoint's onClose method. Note the websocket
specification defines the acceptable uses of status codes and reason phrases.
If the application cannot determine a suitable close code to use for the closeReason,
it is recommended to use
| |
| getAsyncRemote | back to summary |
|---|---|
| public RemoteEndpoint. Implements jakarta. Get a reference a
| |
| getBasicRemote | back to summary |
|---|---|
| public RemoteEndpoint. Implements jakarta. Get a reference a
| |
| getContainer | back to summary |
|---|---|
| public WebSocketContainer getContainer() Implements jakarta. This method is not supported on
| |
| getDistributedProperties | back to summary |
|---|---|
| public Map Implements org. Doc from org. Get distributed properties.
Values put into this map must be
Content of this map is synchronized among all cluster nodes, so putting an entry on any of the nodes will be
visible on all other nodes which have reference to current session (in form of
Please note that when not running in the distributed environment, this map behaves similarly to | |
| getId | back to summary |
|---|---|
| public String getId() Implements jakarta. Get a string containing the unique identifier assigned to this session. The identifier is assigned by the web socket implementation and is implementation dependent. | |
| getMaxBinaryMessageBufferSize | back to summary |
|---|---|
| public int getMaxBinaryMessageBufferSize() Implements jakarta. Get the maximum length of incoming binary messages that this Session can buffer. If
the implementation receives a binary message that it cannot buffer because it
is too large, it must close the session with a close code of
| |
| getMaxIdleTimeout | back to summary |
|---|---|
| public long getMaxIdleTimeout() Implements jakarta. Get the number of milliseconds before this conversation may be closed by the container if it is inactive, i.e. no messages are either sent or received in that time.
| |
| getMaxTextMessageBufferSize | back to summary |
|---|---|
| public int getMaxTextMessageBufferSize() Implements jakarta. Get the maximum length of incoming text messages that this Session can buffer. If
the implementation receives a text message that it cannot buffer because it
is too large, it must close the session with a close code of
| |
| getMessageHandlers | back to summary |
|---|---|
| public Set Implements jakarta. This method is not supported on
| |
| getNegotiatedExtensions | back to summary |
|---|---|
| public List Implements jakarta. Get the list of extensions currently in use for this conversation. | |
| getNegotiatedSubprotocol | back to summary |
|---|---|
| public String getNegotiatedSubprotocol() Implements jakarta. Get the sub protocol agreed during the websocket handshake for this conversation. | |
| getOpenSessions | back to summary |
|---|---|
| public Set Implements jakarta. This method is not supported on | |
| getPathParameters | back to summary |
|---|---|
| public Map Implements jakarta. Get a map of the path parameter names and values used associated with the request this session was opened under. | |
| getProtocolVersion | back to summary |
|---|---|
| public String getProtocolVersion() Implements jakarta. Get the version of the websocket protocol currently being used. This is taken as the value of the Sec-WebSocket-Version header used in the opening handshake. i.e. "13". | |
| getQueryString | back to summary |
|---|---|
| public String getQueryString() Implements jakarta. Get the query string associated with the request this session was opened under. | |
| getRequestParameterMap | back to summary |
|---|---|
| public Map Implements jakarta. Get the request parameters associated with the request this session was opened under. | |
| getRequestURI | back to summary |
|---|---|
| public URI getRequestURI() Implements jakarta. Get the | |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() Implements jakarta. Get the authenticated user for this session or | |
| getUserProperties | back to summary |
|---|---|
| public Map Implements jakarta. This method is not supported on
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements jakarta. Get the information about session state.
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Implements jakarta. Get the information about secure transport.
| |
| removeMessageHandler | back to summary |
|---|---|
| public void removeMessageHandler(MessageHandler handler) Implements jakarta. This method is not supported on
| |
| setMaxBinaryMessageBufferSize | back to summary |
|---|---|
| public void setMaxBinaryMessageBufferSize(int length) Implements jakarta. This method is not supported on
| |
| setMaxIdleTimeout | back to summary |
|---|---|
| public void setMaxIdleTimeout(long milliseconds) Implements jakarta. This method is not supported on
| |
| setMaxTextMessageBufferSize | back to summary |
|---|---|
| public void setMaxTextMessageBufferSize(int length) Implements jakarta. This method is not supported on
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static RemoteSession. | |
| public static RemoteSession. |
| CONNECTION_ID | back to summary |
|---|---|
| public static final RemoteSession. Cluster connection Id. (internal property).
Value must be | |
| key | back to summary |
|---|---|
| private final String key | |
| MAX_BINARY_MESSAGE_BUFFER_SIZE | back to summary |
|---|---|
| public static final RemoteSession. Max binary buffer size.
Value must be | |
| MAX_IDLE_TIMEOUT | back to summary |
|---|---|
| public static final RemoteSession. Max idle timeout.
Value must be | |
| MAX_TEXT_MESSAGE_BUFFER_SIZE | back to summary |
|---|---|
| public static final RemoteSession. Max text buffer size.
Value must be | |
| NEGOTIATED_EXTENSIONS | back to summary |
|---|---|
| public static final RemoteSession. Negotiated extensions. | |
| NEGOTIATED_SUBPROTOCOL | back to summary |
|---|---|
| public static final RemoteSession. Negotiated subprotocol.
Value must be | |
| PATH_PARAMETERS | back to summary |
|---|---|
| public static final RemoteSession. Path parameters.
Value must be | |
| QUERY_STRING | back to summary |
|---|---|
| public static final RemoteSession. Query string.
Value must be | |
| REQUEST_PARAMETER_MAP | back to summary |
|---|---|
| public static final RemoteSession. Request Parameter map.
Value must be | |
| REQUEST_URI | back to summary |
|---|---|
| public static final RemoteSession. Request URI.
Value must be | |
| SECURE | back to summary |
|---|---|
| public static final RemoteSession. Secure flag.
Value must be
| |
| USER_PRINCIPAL | back to summary |
|---|---|
| public static final RemoteSession. User principal.
Value must be | |
| DistributedMapKey | back to summary |
|---|---|
| private DistributedMapKey(String key) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static RemoteSession. | |
| values | back to summary |
|---|---|
| public static RemoteSession. | |