Package io.helidon.webclient.websocket
Class WsClientProtocolConfig.BuilderBase<BUILDER extends WsClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends WsClientProtocolConfig>
java.lang.Object
io.helidon.websocket.WsProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.webclient.websocket.WsClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
WsClientProtocolConfig.Builder
- Enclosing interface:
WsClientProtocolConfig
public abstract static class WsClientProtocolConfig.BuilderBase<BUILDER extends WsClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends WsClientProtocolConfig>
extends WsProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
WsClientProtocolConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.websocket.WsProtocolConfig.BuilderBase
WsProtocolConfig.BuilderBase.WsProtocolConfigImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubProtocol(String subProtocol) WebSocket sub-protocols requested by the client.addSubProtocols(List<String> subProtocols) WebSocket sub-protocols requested by the client.Clear all subProtocols.Deprecated.Update builder from configuration (node of this type).from(WsClientProtocolConfig prototype) Update this builder from an existing prototype instance.from(WsClientProtocolConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.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).maxFrameSize(Size 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).name()Name of this protocol configuration.Name of this protocol configuration.protected voidHandles providers and decorators.WebSocket sub-protocols requested by the client.subProtocols(List<String> subProtocols) WebSocket sub-protocols requested by the client.toString()protected voidValidates required properties.Methods inherited from class io.helidon.websocket.WsProtocolConfig.BuilderBase
config, from, from, maxBufferedMessageSize, maxBufferedMessageSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends WsClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WsClientProtocolConfig> - Overrides:
configin classWsProtocolConfig.BuilderBase<BUILDER extends WsClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WsClientProtocolConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends WsClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WsClientProtocolConfig> - Overrides:
configin classWsProtocolConfig.BuilderBase<BUILDER extends WsClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WsClientProtocolConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
name
Name of this protocol configuration.- Parameters:
name- protocol configuration name- Returns:
- updated builder instance
- See Also:
-
clearSubProtocols
Clear all subProtocols.- Returns:
- updated builder instance
- See Also:
-
subProtocols
WebSocket sub-protocols requested by the client.- Parameters:
subProtocols- requested WebSocket sub-protocols- Returns:
- updated builder instance
- See Also:
-
addSubProtocols
WebSocket sub-protocols requested by the client.- Parameters:
subProtocols- requested WebSocket sub-protocols- Returns:
- updated builder instance
- See Also:
-
addSubProtocol
WebSocket sub-protocols requested by the client.- Parameters:
subProtocol- add single requested WebSocket sub-protocols- Returns:
- updated builder instance
- See Also:
-
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).- Parameters:
maxFrameSize- maximum frame payload size- Returns:
- updated builder instance
- See Also:
-
name
Name of this protocol configuration.- 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
-
toString
- Overrides:
toStringin classWsProtocolConfig.BuilderBase<BUILDER extends WsClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WsClientProtocolConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classWsProtocolConfig.BuilderBase<BUILDER extends WsClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WsClientProtocolConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classWsProtocolConfig.BuilderBase<BUILDER extends WsClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WsClientProtocolConfig>
-
config(io.helidon.config.Config)