public class TomcatRequestUpgradeStrategy extends Object implements RequestUpgradeStrategy
RequestUpgradeStrategy
for use with Tomcat.Constructor and Description |
---|
TomcatRequestUpgradeStrategy() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
upgrade
public void setAsyncSendTimeout(Long timeoutInMillis)
WebSocketContainer.setAsyncSendTimeout(long)
.public void setMaxSessionIdleTimeout(Long timeoutInMillis)
WebSocketContainer.setDefaultMaxSessionIdleTimeout(long)
.public void setMaxTextMessageBufferSize(Integer bufferSize)
WebSocketContainer.setDefaultMaxTextMessageBufferSize(int)
.public void setMaxBinaryMessageBufferSize(Integer bufferSize)
WebSocketContainer.setDefaultMaxBinaryMessageBufferSize(int)
.public reactor.core.publisher.Mono<Void> upgrade(ServerWebExchange exchange, WebSocketHandler handler, @Nullable String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory)
RequestUpgradeStrategy
upgrade
in interface RequestUpgradeStrategy
exchange
- the current exchangehandler
- handler for the WebSocket sessionsubProtocol
- the selected sub-protocol got the handlerhandshakeInfoFactory
- factory to create HandshakeInfo for the WebSocket sessionMono<Void>
to indicate the outcome of the
WebSocket session handling.