Interface TransportRequest
public interface TransportRequest
Exposes information, typically to 
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.
- Since:
- 4.1
- Author:
- Rossen Stoyanchev
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddTimeoutTask(Runnable runnable) Register a timeout cleanup task to invoke if the SockJS session is not fully established within the calculated retransmission timeout period.Return the headers to send with the connect request.Return the headers to add to all other HTTP requests besides the handshake request such as XHR receive and send requests.Return the message codec to use for encoding SockJS messages.Return information about the SockJS URL including server and session ID.Return the transport URL for the given transport.getUser()Return the user associated with the request, if any.
- 
Method Details- 
getSockJsUrlInfoSockJsUrlInfo getSockJsUrlInfo()Return information about the SockJS URL including server and session ID.
- 
getHandshakeHeadersHttpHeaders getHandshakeHeaders()Return the headers to send with the connect request.
- 
getHttpRequestHeadersHttpHeaders getHttpRequestHeaders()Return the headers to add to all other HTTP requests besides the handshake request such as XHR receive and send requests.- Since:
- 4.2
 
- 
getTransportUrlURI getTransportUrl()Return the transport URL for the given transport.For an XhrTransportthis is the URL for receiving messages.
- 
getUserReturn the user associated with the request, if any.
- 
getMessageCodecSockJsMessageCodec getMessageCodec()Return the message codec to use for encoding SockJS messages.
- 
addTimeoutTaskRegister a timeout cleanup task to invoke if the SockJS session is not fully established within the calculated retransmission timeout period.
 
-