TransportRequest.
| Modifier and Type | Class and Description |
|---|---|
| private class | DefaultTransportRequest.
Updates the given (global) future based success or failure to connect for the entire SockJS request regardless of which transport actually managed to connect. |
| private class | DefaultTransportRequest.
References Deprecated
Updates the given (global) future based success or failure to connect for
the entire SockJS request regardless of which transport actually managed
to connect.
ListenableFutureCallback is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Modifier and Type | Field and Description |
|---|---|
| private final SockJsMessageCodec | |
| private DefaultTransportRequest | |
| private final HttpHeaders | |
| private final HttpHeaders | |
| private static final Log | |
| private final TransportType | |
| private final SockJsUrlInfo | |
| private TaskScheduler | |
| private final List | |
| private long | |
| private final Transport | |
| private Principal |
| Access | Constructor and Description |
|---|---|
| public | DefaultTransportRequest(SockJsUrlInfo sockJsUrlInfo, HttpHeaders handshakeHeaders, HttpHeaders httpRequestHeaders, Transport transport, TransportType serverTransportType, SockJsMessageCodec codec)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addTimeoutTask(Runnable runnable)
Implements org. Register a timeout cleanup task to invoke if the SockJS session is not fully established within the calculated retransmission timeout period. |
| public void | |
| public void | |
| public HttpHeaders | getHandshakeHeaders()
Implements org. Return the headers to send with the connect request. |
| public HttpHeaders | getHttpRequestHeaders()
Implements org. Return the headers to add to all other HTTP requests besides the handshake request such as XHR receive and send requests. |
| public SockJsMessageCodec | getMessageCodec()
Implements org. Return the message codec to use for encoding SockJS messages. |
| public SockJsUrlInfo | getSockJsUrlInfo()
Implements org. Return information about the SockJS URL including server and session ID. |
| public URI | getTransportUrl()
Implements org. Return the transport URL for the given transport. |
| public Principal | getUser()
Implements org. Return the user associated with the request, if any. |
| private void | scheduleConnectTimeoutTask(DefaultTransportRequest.
References Deprecated
DefaultTransportRequest.ListenableConnectCallback is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| codec | back to summary |
|---|---|
| private final SockJsMessageCodec codec | |
| fallbackRequest | back to summary |
|---|---|
| private DefaultTransportRequest fallbackRequest
| |
| handshakeHeaders | back to summary |
|---|---|
| private final HttpHeaders handshakeHeaders | |
| httpRequestHeaders | back to summary |
|---|---|
| private final HttpHeaders httpRequestHeaders | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| serverTransportType | back to summary |
|---|---|
| private final TransportType serverTransportType | |
| sockJsUrlInfo | back to summary |
|---|---|
| private final SockJsUrlInfo sockJsUrlInfo | |
| timeoutScheduler | back to summary |
|---|---|
| private TaskScheduler timeoutScheduler
| |
| timeoutTasks | back to summary |
|---|---|
| private final List<Runnable> timeoutTasks | |
| timeoutValue | back to summary |
|---|---|
| private long timeoutValue | |
| transport | back to summary |
|---|---|
| private final Transport transport | |
| user | back to summary |
|---|---|
| private Principal user
| |
| DefaultTransportRequest | back to summary |
|---|---|
| public DefaultTransportRequest(SockJsUrlInfo sockJsUrlInfo, HttpHeaders handshakeHeaders, HttpHeaders httpRequestHeaders, Transport transport, TransportType serverTransportType, SockJsMessageCodec codec) | |
| addTimeoutTask | back to summary |
|---|---|
| public void addTimeoutTask(Runnable runnable) Implements org. Doc from org. Register a timeout cleanup task to invoke if the SockJS session is not fully established within the calculated retransmission timeout period.
| |
| connect | back to summary |
|---|---|
| public void connect(WebSocketHandler handler, SettableListenableFuture<WebSocketSession> future)
Deprecated
| |
| connect | back to summary |
|---|---|
| public void connect(WebSocketHandler handler, CompletableFuture<WebSocketSession> future) | |
| getHandshakeHeaders | back to summary |
|---|---|
| public HttpHeaders getHandshakeHeaders() Implements org. Doc from org. Return the headers to send with the connect request.
| |
| getHttpRequestHeaders | back to summary |
|---|---|
| public HttpHeaders getHttpRequestHeaders() Implements org. Doc from org. 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() Implements org. Doc from org. Return the message codec to use for encoding SockJS messages.
| |
| getSockJsUrlInfo | back to summary |
|---|---|
| public SockJsUrlInfo getSockJsUrlInfo() Implements org. Doc from org. Return information about the SockJS URL including server and session ID.
| |
| getTransportUrl | back to summary |
|---|---|
| public URI getTransportUrl() Implements org. Doc from org. Return the transport URL for the given transport. For an
| |
| getUser | back to summary |
|---|---|
| public Principal getUser() Implements org. Doc from org. Return the user associated with the request, if any. | |
| scheduleConnectTimeoutTask | back to summary |
|---|---|
| private void scheduleConnectTimeoutTask(DefaultTransportRequest. References Deprecated
See corresponding docs for further information. | |
| scheduleConnectTimeoutTask | back to summary |
|---|---|
| private void scheduleConnectTimeoutTask(DefaultTransportRequest. | |
| setFallbackRequest | back to summary |
|---|---|
| public void setFallbackRequest(DefaultTransportRequest fallbackRequest) | |
| setTimeoutScheduler | back to summary |
|---|---|
| public void setTimeoutScheduler(TaskScheduler scheduler) | |
| setTimeoutValue | back to summary |
|---|---|
| public void setTimeoutValue(long timeoutValue) | |
| setUser | back to summary |
|---|---|
| public void setUser(Principal user) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
Runnable to handle a scheduled timeout
callback.
| Modifier and Type | Field and Description |
|---|---|
| private final CompletableFuture | |
| private final AtomicBoolean | |
| private final WebSocketHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(WebSocketSession
the first input argument session, Throwable the second input argument throwable)Implements java. Performs this operation on the given arguments. |
| private void | |
| public void |
| future | back to summary |
|---|---|
| private final CompletableFuture<WebSocketSession> future | |
| handled | back to summary |
|---|---|
| private final AtomicBoolean handled | |
| handler | back to summary |
|---|---|
| private final WebSocketHandler handler | |
| CompletableConnectCallback | back to summary |
|---|---|
| public CompletableConnectCallback(WebSocketHandler handler, CompletableFuture<WebSocketSession> future) | |
| accept | back to summary |
|---|---|
| public void accept(WebSocketSession session, Throwable throwable) Implements java. Doc from java. Performs this operation on the given arguments.
| |
| handleFailure | back to summary |
|---|---|
| private void handleFailure(Throwable ex, boolean isTimeoutFailure) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
References Deprecated
ListenableFutureCallback is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
Runnable to handle a scheduled timeout
callback.
| Modifier and Type | Field and Description |
|---|---|
| private final SettableListenableFuture | future
References Deprecated
SettableListenableFuture is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final AtomicBoolean | |
| private final WebSocketHandler |
| Access | Constructor and Description |
|---|---|
| public | ListenableConnectCallback(WebSocketHandler handler, SettableListenableFuture<WebSocketSession> future)
References Deprecated
SettableListenableFuture is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | onFailure(Throwable
the failure ex)Implements org. Called when the |
| public void | onSuccess(WebSocketSession
the result session)Implements org. Called when the |
| public void |
| future | back to summary |
|---|---|
| private final SettableListenableFuture<WebSocketSession> future
References Deprecated
See corresponding docs for further information. | |
| handled | back to summary |
|---|---|
| private final AtomicBoolean handled | |
| handler | back to summary |
|---|---|
| private final WebSocketHandler handler | |
| ListenableConnectCallback | back to summary |
|---|---|
| public ListenableConnectCallback(WebSocketHandler handler, SettableListenableFuture<WebSocketSession> future)
References Deprecated
See corresponding docs for further information. | |
| handleFailure | back to summary |
|---|---|
| private void handleFailure(Throwable ex, boolean isTimeoutFailure) | |
| onFailure | back to summary |
|---|---|
| public void onFailure(Throwable ex) Implements org. Doc from org. Called when the Note that Exceptions raised by this method are ignored. | |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(WebSocketSession session) Implements org. Doc from org. Called when the Note that Exceptions raised by this method are ignored.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |