RequestUpgradeStrategy for Reactor Netty.
| Modifier and Type | Field and Description |
|---|---|
| private Boolean | |
| private Integer | |
| private final Supplier |
| Access | Constructor and Description |
|---|---|
| public | ReactorNettyRequestUpgradeStrategy()
Create an instances with a default |
| public | ReactorNettyRequestUpgradeStrategy(Supplier<WebsocketServerSpec.
Create an instance with a pre-configured |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv WebsocketServerSpec | |
| public boolean | getHandlePing()
Deprecated
as of 5.2.6 in favor of
getWebsocketServerSpec()
Return the configured |
| public int | getMaxFramePayloadLength()
Deprecated
as of 5.2.6 in favor of
getWebsocketServerSpec()
Return the configured max length for frames. |
| public WebsocketServerSpec | getWebsocketServerSpec()
Build an instance of |
| public void | setHandlePing(boolean
whether to let Ping frames through for handling handlePing)
Deprecated
as of 5.2.6 in favor of providing a supplier of
reactor. with a
constructor argument
Configure whether to let ping frames through to be handled by the
|
| public void | setMaxFramePayloadLength(Integer
the max length for frames. maxFramePayloadLength)
Deprecated
as of 5.2.6 in favor of providing a supplier of
reactor. with a
constructor argument
Configure the maximum allowable frame payload length. |
| public Mono | upgrade(ServerWebExchange
the current exchange exchange, WebSocketHandler handler for the WebSocket session handler, String the selected sub-protocol got the handler subProtocol, Supplier<HandshakeInfo> factory to create HandshakeInfo for the WebSocket session handshakeInfoFactory)Implements org. Upgrade to a WebSocket session and handle it with the given handler. |
| handlePing | back to summary |
|---|---|
| private Boolean handlePing
| |
| maxFramePayloadLength | back to summary |
|---|---|
| private Integer maxFramePayloadLength
| |
| specBuilderSupplier | back to summary |
|---|---|
| private final Supplier<WebsocketServerSpec. | |
| ReactorNettyRequestUpgradeStrategy | back to summary |
|---|---|
| public ReactorNettyRequestUpgradeStrategy() Create an instances with a default
| |
| ReactorNettyRequestUpgradeStrategy | back to summary |
|---|---|
| public ReactorNettyRequestUpgradeStrategy(Supplier<WebsocketServerSpec. Create an instance with a pre-configured
| |
| buildSpec | back to summary |
|---|---|
| pack-priv WebsocketServerSpec buildSpec(String subProtocol) | |
| getHandlePing | back to summary |
|---|---|
| public boolean getHandlePing()
Deprecated as of 5.2.6 in favor of Return the configured
| |
| getMaxFramePayloadLength | back to summary |
|---|---|
| public int getMaxFramePayloadLength()
Deprecated as of 5.2.6 in favor of Return the configured max length for frames.
| |
| getWebsocketServerSpec | back to summary |
|---|---|
| public WebsocketServerSpec getWebsocketServerSpec() Build an instance of
| |
| setHandlePing | back to summary |
|---|---|
| public void setHandlePing(boolean handlePing)
Deprecated as of 5.2.6 in favor of providing a supplier of
Configure whether to let ping frames through to be handled by the
By default this is set to
| |
| setMaxFramePayloadLength | back to summary |
|---|---|
| public void setMaxFramePayloadLength(Integer maxFramePayloadLength)
Deprecated as of 5.2.6 in favor of providing a supplier of
Configure the maximum allowable frame payload length. Setting this value to your application's requirement may reduce denial of service attacks using long data frames. Corresponds to the argument with the same name in the constructor of
By default set to 65536 (64K).
| |
| upgrade | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Upgrade to a WebSocket session and handle it with the given handler.
| |