Package reactor.netty.http.websocket
Class WebsocketSpecImpl
java.lang.Object
reactor.netty.http.websocket.WebsocketSpecImpl
- All Implemented Interfaces:
WebsocketSpec
Configurer implementation for
WebsocketSpec.- Since:
- 0.9.5
- Author:
- Dmitrii Borin, Violeta Georgieva
-
Nested Class Summary
Nested classes/interfaces inherited from interface reactor.netty.http.websocket.WebsocketSpec
WebsocketSpec.Builder<SPEC extends WebsocketSpec.Builder<SPEC>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompress()Returns whether the websocket compression extension is enabled.final booleanReturns whether to proxy websocket PING frames or respond to them.final intReturns the configured maximum allowable frame payload length.final @Nullable StringReturns the configured sub protocols.
-
Constructor Details
-
WebsocketSpecImpl
-
-
Method Details
-
protocols
Description copied from interface:WebsocketSpecReturns the configured sub protocols.- Specified by:
protocolsin interfaceWebsocketSpec- Returns:
- returns the configured sub protocols.
-
maxFramePayloadLength
public final int maxFramePayloadLength()Description copied from interface:WebsocketSpecReturns the configured maximum allowable frame payload length.Note: When a websocket compression extension is enabled, this setting is applied on the compressed data.
- Specified by:
maxFramePayloadLengthin interfaceWebsocketSpec- Returns:
- returns the configured maximum allowable frame payload length.
-
handlePing
public final boolean handlePing()Description copied from interface:WebsocketSpecReturns whether to proxy websocket PING frames or respond to them.- Specified by:
handlePingin interfaceWebsocketSpec- Returns:
- returns whether to proxy websocket PING frames or respond to them.
-
compress
public boolean compress()Description copied from interface:WebsocketSpecReturns whether the websocket compression extension is enabled.- Specified by:
compressin interfaceWebsocketSpec- Returns:
- returns whether the websocket compression extension is enabled.
-