AbstractClientSockJsSession for use with HTTP
transports simulating a WebSocket session.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final HttpHeaders | |
| private final HttpHeaders | |
| private final URI | |
| private int | |
| private final XhrTransport |
| Access | Constructor and Description |
|---|---|
| public | XhrClientSockJsSession(TransportRequest request, WebSocketHandler handler, XhrTransport transport, SettableListenableFuture<WebSocketSession> connectFuture)
Deprecated
since 6.0. as of 6.0, in favor of
XhrClientSockJsSession(TransportRequest, WebSocketHandler, XhrTransport, CompletableFuture)
Create a new |
| public | XhrClientSockJsSession(TransportRequest request, WebSocketHandler handler, XhrTransport transport, CompletableFuture<WebSocketSession> connectFuture)
Create a new |
| binaryMessageSizeLimit | back to summary |
|---|---|
| private int binaryMessageSizeLimit | |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| sendHeaders | back to summary |
|---|---|
| private final HttpHeaders sendHeaders | |
| sendUrl | back to summary |
|---|---|
| private final URI sendUrl | |
| textMessageSizeLimit | back to summary |
|---|---|
| private int textMessageSizeLimit | |
| transport | back to summary |
|---|---|
| private final XhrTransport transport | |
| XhrClientSockJsSession | back to summary |
|---|---|
| public XhrClientSockJsSession(TransportRequest request, WebSocketHandler handler, XhrTransport transport, SettableListenableFuture<WebSocketSession> connectFuture)
Deprecated since 6.0. as of 6.0, in favor of
Create a new
| |
| XhrClientSockJsSession | back to summary |
|---|---|
| public XhrClientSockJsSession(TransportRequest request, WebSocketHandler handler, XhrTransport transport, CompletableFuture<WebSocketSession> connectFuture) Create a new
| |
| disconnect | back to summary |
|---|---|
| protected void disconnect(CloseStatus status) 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.
| |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() | |
| getLocalAddress | back to summary |
|---|---|
| public InetSocketAddress getLocalAddress() Implements org. Doc from org. Return the address on which the request was received.
| |
| 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.
| |
| sendInternal | back to summary |
|---|---|
| protected void sendInternal(TextMessage message) 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.
| |