| Modifier and Type | Field and Description |
|---|---|
| protected final Log | |
| protected static final String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CompletableFuture | connectAsync(TransportRequest
the transport request request, WebSocketHandler the application handler to delegate lifecycle events to handler)Implements org. Connect the transport. |
| protected void | connectInternal(TransportRequest request, WebSocketHandler handler, URI receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, SettableListenableFuture<WebSocketSession> connectFuture)
Deprecated
|
| protected abstract void | connectInternal(TransportRequest request, WebSocketHandler handler, URI receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFuture<WebSocketSession> connectFuture)
|
| public String | executeInfoRequest(URI
the URL to obtain SockJS server information from infoUrl, HttpHeaders the headers to use for the request headers)Implements org. Perform an HTTP request to the SockJS "Info" URL. |
| protected abstract ResponseEntity | |
| public void | executeSendRequest(URI
the URL for sending messages. url, HttpHeaders headers, TextMessage the message to send message)Implements org. Execute a request to send the message to the server. |
| protected abstract ResponseEntity | |
| public List | getTransportTypes()
Implements org. Get the SockJS transport types that this transport can be used for. |
| public boolean | isXhrStreamingDisabled()
Implements org. Whether XHR streaming is disabled or not. |
| public void | setXhrStreamingDisabled(boolean disabled)
An |
| logger | back to summary |
|---|---|
| protected final Log logger | |
| PRELUDE | back to summary |
|---|---|
| protected static final String PRELUDE | |
| xhrStreamingDisabled | back to summary |
|---|---|
| private boolean xhrStreamingDisabled | |
| AbstractXhrTransport | back to summary |
|---|---|
| public AbstractXhrTransport() | |
| connectAsync | back to summary |
|---|---|
| public CompletableFuture Implements org. Doc from org. Connect the transport.
| |
| connectInternal | back to summary |
|---|---|
| protected void connectInternal(TransportRequest request, WebSocketHandler handler, URI receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, SettableListenableFuture<WebSocketSession> connectFuture)
Deprecated
| |
| connectInternal | back to summary |
|---|---|
| protected abstract void connectInternal(TransportRequest request, WebSocketHandler handler, URI receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFuture<WebSocketSession> connectFuture) | |
| executeInfoRequest | back to summary |
|---|---|
| public String executeInfoRequest(URI infoUrl, HttpHeaders headers) Implements org. Doc from org. Perform an HTTP request to the SockJS "Info" URL. and return the resulting JSON response content, or raise an exception. Note that as of 4.2 this method accepts a
| |
| executeInfoRequestInternal | back to summary |
|---|---|
| protected abstract ResponseEntity | |
| executeSendRequest | back to summary |
|---|---|
| public void executeSendRequest(URI url, HttpHeaders headers, TextMessage message) Implements org. Doc from org. Execute a request to send the message to the server. Note that as of 4.2 this method accepts a
| |
| executeSendRequestInternal | back to summary |
|---|---|
| protected abstract ResponseEntity | |
| getTransportTypes | back to summary |
|---|---|
| public List Implements org. Doc from org. Get the SockJS transport types that this transport can be used for. In particular since from a client perspective there is no difference
between XHR and XHR streaming, an
| |
| isXhrStreamingDisabled | back to summary |
|---|---|
| public boolean isXhrStreamingDisabled() Implements org. Whether XHR streaming is disabled or not.
| |
| setXhrStreamingDisabled | back to summary |
|---|---|
| public void setXhrStreamingDisabled(boolean disabled) An Typically an By default this property is set to | |