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, waitupgradepublic void setAsyncSendTimeout(Long timeoutInMillis)
WebSocketContainer.setAsyncSendTimeout(long).@Nullable public Long getAsyncSendTimeout()
public void setMaxSessionIdleTimeout(Long timeoutInMillis)
WebSocketContainer.setDefaultMaxSessionIdleTimeout(long).@Nullable public Long getMaxSessionIdleTimeout()
public void setMaxTextMessageBufferSize(Integer bufferSize)
WebSocketContainer.setDefaultMaxTextMessageBufferSize(int).@Nullable public Integer getMaxTextMessageBufferSize()
public void setMaxBinaryMessageBufferSize(Integer bufferSize)
WebSocketContainer.setDefaultMaxBinaryMessageBufferSize(int).@Nullable public Integer getMaxBinaryMessageBufferSize()
public reactor.core.publisher.Mono<Void> upgrade(org.springframework.web.server.ServerWebExchange exchange, WebSocketHandler handler, @Nullable String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory)
RequestUpgradeStrategyupgrade in interface RequestUpgradeStrategyexchange - 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.