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 TypeMethodDescriptionboolean
compress()
Returns whether the websocket compression extension is enabled.final boolean
Returns whether to proxy websocket PING frames or respond to them.final int
Returns the configured maximum allowable frame payload length.final @Nullable String
Returns the configured sub protocols.
-
Constructor Details
-
WebsocketSpecImpl
-
-
Method Details
-
protocols
Description copied from interface:WebsocketSpec
Returns the configured sub protocols.- Specified by:
protocols
in interfaceWebsocketSpec
- Returns:
- returns the configured sub protocols.
-
maxFramePayloadLength
public final int maxFramePayloadLength()Description copied from interface:WebsocketSpec
Returns 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:
maxFramePayloadLength
in interfaceWebsocketSpec
- Returns:
- returns the configured maximum allowable frame payload length.
-
handlePing
public final boolean handlePing()Description copied from interface:WebsocketSpec
Returns whether to proxy websocket PING frames or respond to them.- Specified by:
handlePing
in interfaceWebsocketSpec
- Returns:
- returns whether to proxy websocket PING frames or respond to them.
-
compress
public boolean compress()Description copied from interface:WebsocketSpec
Returns whether the websocket compression extension is enabled.- Specified by:
compress
in interfaceWebsocketSpec
- Returns:
- returns whether the websocket compression extension is enabled.
-