Transport and
session implementations, about a request
to connect to a SockJS server endpoint over a given transport.
Note that a single request to connect via SockJsClient may result
in multiple instances of TransportRequest, one for each transport
before a connection is successfully established.
| Modifier and Type | Method and Description |
|---|---|
| public void | addTimeoutTask(Runnable runnable)
Register a timeout cleanup task to invoke if the SockJS session is not fully established within the calculated retransmission timeout period. |
| public HttpHeaders | |
| public HttpHeaders | getHttpRequestHeaders()
Return the headers to add to all other HTTP requests besides the handshake request such as XHR receive and send requests. |
| public SockJsMessageCodec | |
| public SockJsUrlInfo | |
| public URI | |
| public Principal |
| addTimeoutTask | back to summary |
|---|---|
| public void addTimeoutTask(Runnable runnable) Register a timeout cleanup task to invoke if the SockJS session is not fully established within the calculated retransmission timeout period. | |
| getHandshakeHeaders | back to summary |
|---|---|
| public HttpHeaders getHandshakeHeaders() Return the headers to send with the connect request. | |
| getHttpRequestHeaders | back to summary |
|---|---|
| public HttpHeaders getHttpRequestHeaders() Return the headers to add to all other HTTP requests besides the handshake request such as XHR receive and send requests.
| |
| getMessageCodec | back to summary |
|---|---|
| public SockJsMessageCodec getMessageCodec() Return the message codec to use for encoding SockJS messages. | |
| getSockJsUrlInfo | back to summary |
|---|---|
| public SockJsUrlInfo getSockJsUrlInfo() Return information about the SockJS URL including server and session ID. | |
| getTransportUrl | back to summary |
|---|---|
| public URI getTransportUrl() Return the transport URL for the given transport. For an | |
| getUser | back to summary |
|---|---|
| public Principal getUser() Return the user associated with the request, if any.
| |