Package reactor.netty.http.client
Class WebsocketClientSpec.Builder
java.lang.Object
reactor.netty.http.websocket.WebsocketSpec.Builder<WebsocketClientSpec.Builder>
reactor.netty.http.client.WebsocketClientSpec.Builder
- All Implemented Interfaces:
Supplier<WebsocketClientSpec.Builder>
- Enclosing interface:
- WebsocketClientSpec
public static final class WebsocketClientSpec.Builder
extends WebsocketSpec.Builder<WebsocketClientSpec.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionfinal WebsocketClientSpecbuild()Builds newWebsocketClientSpec.compressionAllowClientNoContext(boolean allowClientNoContext) Allows the server to activateclient_no_context_takeoverDefault to false.compressionRequestedServerNoContext(boolean requestedServerNoContext) Indicates if the client needs to activateserver_no_context_takeoverif the server is compatible with.version(WebSocketVersion version) Sets websocket version to use.Methods inherited from class reactor.netty.http.websocket.WebsocketSpec.Builder
compress, get, handlePing, maxFramePayloadLength, protocols
-
Method Details
-
compressionAllowClientNoContext
public final WebsocketClientSpec.Builder compressionAllowClientNoContext(boolean allowClientNoContext) Allows the server to activateclient_no_context_takeoverDefault to false.- Parameters:
allowClientNoContext- allows the server to activateclient_no_context_takeover- Returns:
- this
- Since:
- 1.1.14
- See Also:
-
compressionRequestedServerNoContext
public final WebsocketClientSpec.Builder compressionRequestedServerNoContext(boolean requestedServerNoContext) Indicates if the client needs to activateserver_no_context_takeoverif the server is compatible with. Default to false.- Parameters:
requestedServerNoContext- indicates if the client needs to activateserver_no_context_takeoverif the server is compatible with- Returns:
- this
- Since:
- 1.1.14
- See Also:
-
version
Sets websocket version to use. Set toWebSocketVersion.V13by default- Parameters:
version- WebSocket version to be used- Returns:
- this
- Throws:
NullPointerException- if version is nullIllegalArgumentException- if the version is unknown- Since:
- 1.0.3
-
build
Builds newWebsocketClientSpec.- Returns:
- builds new
WebsocketClientSpec
-