接口 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.

    从以下版本开始:
    4.1
    作者:
    Rossen Stoyanchev
    • 方法详细资料

      • getHttpRequestHeaders

        HttpHeaders getHttpRequestHeaders()
        Return the headers to add to all other HTTP requests besides the handshake request such as XHR receive and send requests.
        从以下版本开始:
        4.2
      • addTimeoutTask

        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.