| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private final Object | |
| private final Queue | |
| private final Object | |
| private volatile boolean | |
| private WebSocketSession |
| Access | Constructor and Description |
|---|---|
| public | WebSocketServerSockJsSession(String id, SockJsServiceConfig config, WebSocketHandler handler, Map<String, Object> attributes)
|
| disconnected | back to summary |
|---|---|
| private volatile boolean disconnected | |
| disconnectLock | back to summary |
|---|---|
| private final Object disconnectLock | |
| initSessionCache | back to summary |
|---|---|
| private final Queue<String> initSessionCache | |
| initSessionLock | back to summary |
|---|---|
| private final Object initSessionLock | |
| openFrameSent | back to summary |
|---|---|
| private volatile boolean openFrameSent | |
| webSocketSession | back to summary |
|---|---|
| private WebSocketSession webSocketSession
| |
| WebSocketServerSockJsSession | back to summary |
|---|---|
| public WebSocketServerSockJsSession(String id, SockJsServiceConfig config, WebSocketHandler handler, Map<String, Object> attributes) | |
| disconnect | back to summary |
|---|---|
| protected void disconnect(CloseStatus status) throws IOException Implements abstract org. Doc from org. Actually close the underlying WebSocket session or in the case of HTTP transports complete the underlying request.
| |
| getAcceptedProtocol | back to summary |
|---|---|
| public String getAcceptedProtocol() Implements org. Doc from org. Return the negotiated sub-protocol. | |
| getBinaryMessageSizeLimit | back to summary |
|---|---|
| public int getBinaryMessageSizeLimit() Implements org. Doc from org. Get the configured maximum size for an incoming binary message.
| |
| getExtensions | back to summary |
|---|---|
| public List Implements org. Doc from org. Determine the negotiated extensions.
| |
| getHandshakeHeaders | back to summary |
|---|---|
| public HttpHeaders getHandshakeHeaders() Implements org. Doc from org. Return the headers used in the handshake request (never
| |
| getLocalAddress | back to summary |
|---|---|
| public InetSocketAddress getLocalAddress() Implements org. Doc from org. Return the address on which the request was received.
| |
| getNativeSession | back to summary |
|---|---|
| public Object getNativeSession() Implements org. Doc from org. Return the underlying native WebSocketSession.
| |
| getNativeSession | back to summary |
|---|---|
| public <T> T getNativeSession(Class<T> requiredType) Implements org. Doc from org. Return the underlying native WebSocketSession, if available. | |
| getPrincipal | back to summary |
|---|---|
| public Principal getPrincipal() Implements org. Doc from org. Return a If the user has not been authenticated, the method returns
| |
| getRemoteAddress | back to summary |
|---|---|
| public InetSocketAddress getRemoteAddress() Implements org. Doc from org. Return the address of the remote client.
| |
| getTextMessageSizeLimit | back to summary |
|---|---|
| public int getTextMessageSizeLimit() Implements org. Doc from org. Get the configured maximum size for an incoming text message.
| |
| getUri | back to summary |
|---|---|
| public URI getUri() Implements org. Doc from org. Return the URI used to open the WebSocket connection. | |
| handleMessage | back to summary |
|---|---|
| public void handleMessage(TextMessage message, WebSocketSession wsSession) throws Exception | |
| initializeDelegateSession | back to summary |
|---|---|
| public void initializeDelegateSession(WebSocketSession session) | |
| isActive | back to summary |
|---|---|
| public boolean isActive() Implements abstract org. Doc from org. Polling and Streaming sessions periodically close the current HTTP request and wait for the next request to come through. During this "downtime" the session is still open but inactive and unable to send messages and therefore has to buffer them temporarily. A WebSocket session by contrast is stateful and remain active until closed.
| |
| sendMessageInternal | back to summary |
|---|---|
| public void sendMessageInternal(String message) throws SockJsTransportFailureException Implements abstract org.
| |
| setBinaryMessageSizeLimit | back to summary |
|---|---|
| public void setBinaryMessageSizeLimit(int messageSizeLimit) Implements org. Doc from org. Configure the maximum size for an incoming binary message.
| |
| setTextMessageSizeLimit | back to summary |
|---|---|
| public void setTextMessageSizeLimit(int messageSizeLimit) Implements org. Doc from org. Configure the maximum size for an incoming text message.
| |
| writeFrameInternal | back to summary |
|---|---|
| protected void writeFrameInternal(SockJsFrame frame) throws IOException Implements abstract org.
| |