クラス UndertowXhrTransport
java.lang.ObjectSE
org.springframework.web.socket.sockjs.client.AbstractXhrTransport
org.springframework.web.socket.sockjs.client.UndertowXhrTransport
- 実装されたすべてのインターフェース:
InfoReceiver
、Transport
、XhrTransport
Undertow の
UndertowClient
に基づく XHR トランスポート。Spring Framework 5.0 の時点で、XNIO を含む Undertow 1.3 または 1.4 が必要です。テスト目的(負荷テストなど)または特定のユースケース(HTTPS 構成など)に使用する場合、カスタム OptionMap を提供する必要があります。
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);
- 導入:
- 4.1.2
- 作成者:
- Brian Clozel, Rossen Stoyanchev
- 関連事項:
フィールドサマリー
クラス org.springframework.web.socket.sockjs.client.AbstractXhrTransport から継承されたフィールド
logger, PRELUDE
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明protected void
connectInternal
(TransportRequest request, WebSocketHandler handler, URISE receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFutureSE<WebSocketSession> connectFuture) protected ResponseEntity<StringSE>
executeInfoRequestInternal
(URISE infoUrl, HttpHeaders headers) protected ResponseEntity<StringSE>
executeRequest
(URISE url, io.undertow.util.HttpString method, HttpHeaders headers, StringSE body) protected ResponseEntity<StringSE>
executeSendRequestInternal
(URISE url, HttpHeaders headers, TextMessage message) io.undertow.client.UndertowClient
Undertow のネイティブ HTTP クライアントを返します。Undertow の HTTP クライアントの I/O 操作をサポートするXnioWorker
を返します。クラス org.springframework.web.socket.sockjs.client.AbstractXhrTransport から継承されたメソッド
connectAsync, connectInternal, executeInfoRequest, executeSendRequest, getTransportTypes, isXhrStreamingDisabled, setXhrStreamingDisabled
コンストラクターの詳細
UndertowXhrTransport
UndertowXhrTransport
メソッドの詳細
getHttpClient
public io.undertow.client.UndertowClient getHttpClient()Undertow のネイティブ HTTP クライアントを返します。getWorker
Undertow の HTTP クライアントの I/O 操作をサポートするXnioWorker
を返します。- 関連事項:
connectInternal
protected void connectInternal(TransportRequest request, WebSocketHandler handler, URISE receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFutureSE<WebSocketSession> connectFuture) - 次で指定:
- クラス
AbstractXhrTransport
のconnectInternal
executeInfoRequestInternal
- 次で指定:
- クラス
AbstractXhrTransport
のexecuteInfoRequestInternal
executeSendRequestInternal
protected ResponseEntity<StringSE> executeSendRequestInternal(URISE url, HttpHeaders headers, TextMessage message) - 次で指定:
- クラス
AbstractXhrTransport
のexecuteSendRequestInternal
executeRequest
protected ResponseEntity<StringSE> executeRequest(URISE url, io.undertow.util.HttpString method, HttpHeaders headers, @Nullable StringSE body)