Module io.helidon.webclient.api
Package io.helidon.webclient.spi
Interface ClientProtocolProvider<T,C>
- Type Parameters:
T
- type of protocolC
- type of the protocol config
- All Known Subinterfaces:
HttpClientSpiProvider<T>
- All Known Implementing Classes:
GrpcProtocolProvider
,Http1ClientSpiProvider
,Http2ClientSpiProvider
,WsProtocolProvider
public interface ClientProtocolProvider<T,C>
Provider interface for client protocols.
HTTP protocols need to also implement
HttpClientSpiProvider
to
be available through the unified HTTP client API.-
Method Summary
Modifier and TypeMethodDescriptionType of the config object.Default configuration of this protocol.Create a protocol client instance.Protocol id for ALPN (protocol negotiation when using TLS).
-
Method Details
-
protocolId
String protocolId()Protocol id for ALPN (protocol negotiation when using TLS).- Returns:
- protocol id
-
configType
Type of the config object.- Returns:
- config type
-
defaultConfig
C defaultConfig()Default configuration of this protocol.- Returns:
- protocol configuration
-
protocol
Create a protocol client instance.- Parameters:
client
- webclient to useconfig
- configuration of the protocol- Returns:
- a new protocol client
-