AbstractClientSockJsSession wrapping and delegating
to an actual WebSocket session.
| Modifier and Type | Field and Description |
|---|---|
| private WebSocketSession |
| Access | Constructor and Description |
|---|---|
| public | WebSocketClientSockJsSession(TransportRequest request, WebSocketHandler handler, SettableListenableFuture<WebSocketSession> connectFuture)
Deprecated
since 6.0. as of 6.0, in favor of
WebSocketClientSockJsSession(TransportRequest, WebSocketHandler, CompletableFuture)
Create a new |
| public | WebSocketClientSockJsSession(TransportRequest request, WebSocketHandler handler, CompletableFuture<WebSocketSession> connectFuture)
|
| webSocketSession | back to summary |
|---|---|
| private WebSocketSession webSocketSession
| |
| WebSocketClientSockJsSession | back to summary |
|---|---|
| public WebSocketClientSockJsSession(TransportRequest request, WebSocketHandler handler, SettableListenableFuture<WebSocketSession> connectFuture)
Deprecated since 6.0. as of 6.0, in favor of Create a new
| |
| WebSocketClientSockJsSession | back to summary |
|---|---|
| public WebSocketClientSockJsSession(TransportRequest request, WebSocketHandler handler, CompletableFuture<WebSocketSession> connectFuture) | |
| disconnect | back to summary |
|---|---|
| protected void disconnect(CloseStatus status) throws IOException Implements abstract org.
| |
| 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.
| |
| 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.
| |
| 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.
| |
| initializeDelegateSession | back to summary |
|---|---|
| public void initializeDelegateSession(WebSocketSession session) | |
| sendInternal | back to summary |
|---|---|
| protected void sendInternal(TextMessage textMessage) throws IOException 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.
| |