public class UndertowXhrTransport extends AbstractXhrTransport
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);
Options
logger, PRELUDE
コンストラクターと説明 |
---|
UndertowXhrTransport() |
UndertowXhrTransport(OptionMap optionMap) |
修飾子と型 | メソッドと説明 |
---|---|
protected void | connectInternal(TransportRequest request, WebSocketHandler handler, URISE receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, SettableListenableFuture<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 | getHttpClient() Undertow のネイティブ HTTP クライアントを返します。 |
XnioWorker | getWorker() Undertow の HTTP クライアントの I/O 操作をサポートする XnioWorker を返します。 |
connect, executeInfoRequest, executeSendRequest, getTransportTypes, isXhrStreamingDisabled, setXhrStreamingDisabled
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public UndertowXhrTransport() throws IOExceptionSE
public UndertowXhrTransport(OptionMap optionMap) throws IOExceptionSE
public io.undertow.client.UndertowClient getHttpClient()
public XnioWorker getWorker()
XnioWorker
を返します。Xnio
protected void connectInternal(TransportRequest request, WebSocketHandler handler, URISE receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, SettableListenableFuture<WebSocketSession> connectFuture)
AbstractXhrTransport
の connectInternal
protected ResponseEntity<StringSE> executeInfoRequestInternal(URISE infoUrl, HttpHeaders headers)
AbstractXhrTransport
の executeInfoRequestInternal
protected ResponseEntity<StringSE> executeSendRequestInternal(URISE url, HttpHeaders headers, TextMessage message)
AbstractXhrTransport
の executeSendRequestInternal
protected ResponseEntity<StringSE> executeRequest(URISE url, io.undertow.util.HttpString method, HttpHeaders headers, @Nullable StringSE body)