Package io.helidon.webclient.websocket
Class WsProtocolProvider
java.lang.Object
io.helidon.webclient.websocket.WsProtocolProvider
- All Implemented Interfaces:
ClientProtocolProvider<WsClient,
WsClientProtocolConfig>
public class WsProtocolProvider
extends Object
implements ClientProtocolProvider<WsClient,WsClientProtocolConfig>
ServiceLoader
provider implementation for WebSocket protocol.
This supports method WebClient.client(io.helidon.webclient.spi.Protocol)
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionType of the config object.Default configuration of this protocol.protocol
(WebClient client, WsClientProtocolConfig config) Create a protocol client instance.Protocol id for ALPN (protocol negotiation when using TLS).
-
Constructor Details
-
WsProtocolProvider
public WsProtocolProvider()Public constructor required byServiceLoader
.
-
-
Method Details
-
protocolId
Description copied from interface:ClientProtocolProvider
Protocol id for ALPN (protocol negotiation when using TLS).- Specified by:
protocolId
in interfaceClientProtocolProvider<WsClient,
WsClientProtocolConfig> - Returns:
- protocol id
-
configType
Description copied from interface:ClientProtocolProvider
Type of the config object.- Specified by:
configType
in interfaceClientProtocolProvider<WsClient,
WsClientProtocolConfig> - Returns:
- config type
-
defaultConfig
Description copied from interface:ClientProtocolProvider
Default configuration of this protocol.- Specified by:
defaultConfig
in interfaceClientProtocolProvider<WsClient,
WsClientProtocolConfig> - Returns:
- protocol configuration
-
protocol
Description copied from interface:ClientProtocolProvider
Create a protocol client instance.- Specified by:
protocol
in interfaceClientProtocolProvider<WsClient,
WsClientProtocolConfig> - Parameters:
client
- webclient to useconfig
- configuration of the protocol- Returns:
- a new protocol client
-