Package io.helidon.webclient.websocket
Interface WsClientProtocolConfig
- All Superinterfaces:
NamedService,NamedService,ProtocolConfig,Prototype.Api,WsProtocolConfig
- All Known Implementing Classes:
WsClientProtocolConfig.BuilderBase.WsClientProtocolConfigImpl
WebSocket client protocol configuration.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forWsClientProtocolConfig.static classWsClientProtocolConfig.BuilderBase<BUILDER extends WsClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WsClientProtocolConfig> Fluent API builder base forWsClientProtocolConfig. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to customize configuration.builder(WsClientProtocolConfig instance) Create a new fluent API builder from an existing instance.static WsClientProtocolConfigcreate()Create a new instance with default values.static WsClientProtocolConfigDeprecated.static WsClientProtocolConfigCreate a new instance from configuration.default SizeMaximum WebSocket frame payload size accepted by the client, from1 BthroughInteger.MAX_VALUEbytes; the default is 1 MiB, replacing the earlier effectively unbounded behavior, and exceeding the configured limit causes the client to close the connection with status code1009(Message Too Big).name()Name of this protocol configuration.WebSocket sub-protocols requested by the client.default Stringtype()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().Methods inherited from interface io.helidon.websocket.WsProtocolConfig
maxBufferedMessageSize
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
type
Description copied from interface:NamedServiceType of this implementation, to distinguish instances of same type, with differentNamedService.name(). Use for exampleConfiguredProvider.configKey()to define the type.- Specified by:
typein interfaceNamedService- Specified by:
typein interfaceNamedService- Returns:
- type of this service
-
name
String name()Name of this protocol configuration.- Specified by:
namein interfaceNamedService- Specified by:
namein interfaceNamedService- Returns:
- protocol configuration name
-
subProtocols
WebSocket sub-protocols requested by the client.- Returns:
- requested WebSocket sub-protocols
-
maxFrameSize
Maximum WebSocket frame payload size accepted by the client, from1 BthroughInteger.MAX_VALUEbytes; the default is 1 MiB, replacing the earlier effectively unbounded behavior, and exceeding the configured limit causes the client to close the connection with status code1009(Message Too Big).- Returns:
- maximum frame payload size
-
create(io.helidon.config.Config)