Class UndertowXhrTransport
java.lang.Object
org.springframework.web.socket.sockjs.client.AbstractXhrTransport
org.springframework.web.socket.sockjs.client.UndertowXhrTransport
- All Implemented Interfaces:
InfoReceiver,Transport,XhrTransport
@Deprecated(since="6.2.18",
forRemoval=true)
public class UndertowXhrTransport
extends AbstractXhrTransport
Deprecated, for removal: This API element is subject to removal in a future version.
as of 6.2.18 with no replacement
An XHR transport based on Undertow's
UndertowClient.
Requires Undertow 1.3 or 1.4, including XNIO.
When used for testing purposes (for example, load testing) or for specific use cases
(like HTTPS configuration), a custom OptionMap should be provided:
OptionMap optionMap = OptionMap.builder() .set(Options.WORKER_IO_THREADS, 8) .set(Options.TCP_NODELAY, true) .set(Options.KEEP_ALIVE, true) .set(Options.WORKER_NAME, "SockJSClient") .getMap(); UndertowXhrTransport transport = new UndertowXhrTransport(optionMap);
- Since:
- 4.1.2
- Author:
- Brian Clozel, Rossen Stoyanchev
- See Also:
-
Options
-
Field Summary
Fields inherited from class org.springframework.web.socket.sockjs.client.AbstractXhrTransport
logger, PRELUDE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.UndertowXhrTransport(org.xnio.OptionMap optionMap) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconnectInternal(TransportRequest request, WebSocketHandler handler, URI receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFuture<WebSocketSession> connectFuture) Deprecated, for removal: This API element is subject to removal in a future version.protected ResponseEntity<String>executeInfoRequestInternal(URI infoUrl, HttpHeaders headers) Deprecated, for removal: This API element is subject to removal in a future version.protected ResponseEntity<String>executeRequest(URI url, io.undertow.util.HttpString method, HttpHeaders headers, String body) Deprecated, for removal: This API element is subject to removal in a future version.protected ResponseEntity<String>executeSendRequestInternal(URI url, HttpHeaders headers, TextMessage message) Deprecated, for removal: This API element is subject to removal in a future version.io.undertow.client.UndertowClientDeprecated, for removal: This API element is subject to removal in a future version.Return Undertow's native HTTP client.org.xnio.XnioWorkerDeprecated, for removal: This API element is subject to removal in a future version.Return theXnioWorkerbacking the I/O operations for Undertow's HTTP client.Methods inherited from class org.springframework.web.socket.sockjs.client.AbstractXhrTransport
connectAsync, connectInternal, executeInfoRequest, executeSendRequest, getTransportTypes, isXhrStreamingDisabled, setXhrStreamingDisabled
-
Constructor Details
-
UndertowXhrTransport
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
UndertowXhrTransport
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
-
Method Details
-
getHttpClient
public io.undertow.client.UndertowClient getHttpClient()Deprecated, for removal: This API element is subject to removal in a future version.Return Undertow's native HTTP client. -
getWorker
public org.xnio.XnioWorker getWorker()Deprecated, for removal: This API element is subject to removal in a future version.Return theXnioWorkerbacking the I/O operations for Undertow's HTTP client.- See Also:
-
Xnio
-
connectInternal
protected void connectInternal(TransportRequest request, WebSocketHandler handler, URI receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFuture<WebSocketSession> connectFuture) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
connectInternalin classAbstractXhrTransport
-
executeInfoRequestInternal
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
executeInfoRequestInternalin classAbstractXhrTransport
-
executeSendRequestInternal
protected ResponseEntity<String> executeSendRequestInternal(URI url, HttpHeaders headers, TextMessage message) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
executeSendRequestInternalin classAbstractXhrTransport
-
executeRequest
protected ResponseEntity<String> executeRequest(URI url, io.undertow.util.HttpString method, HttpHeaders headers, @Nullable String body) Deprecated, for removal: This API element is subject to removal in a future version.
-