java.lang.Object
io.helidon.webclient.http2.Http2ClientSpiProvider
- All Implemented Interfaces:
ClientProtocolProvider<HttpClientSpi,
,Http2ClientProtocolConfig> HttpClientSpiProvider<Http2ClientProtocolConfig>
public class Http2ClientSpiProvider
extends Object
implements HttpClientSpiProvider<Http2ClientProtocolConfig>
ServiceLoader
provider implementation for HTTP/2 protocol.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionType of the config object.Default configuration of this protocol.protocol
(WebClient client, Http2ClientProtocolConfig config) Create a protocol client instance.Protocol id for ALPN (protocol negotiation when using TLS).
-
Constructor Details
-
Http2ClientSpiProvider
public Http2ClientSpiProvider()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<HttpClientSpi,
Http2ClientProtocolConfig> - Returns:
- protocol id
-
configType
Description copied from interface:ClientProtocolProvider
Type of the config object.- Specified by:
configType
in interfaceClientProtocolProvider<HttpClientSpi,
Http2ClientProtocolConfig> - Returns:
- config type
-
defaultConfig
Description copied from interface:ClientProtocolProvider
Default configuration of this protocol.- Specified by:
defaultConfig
in interfaceClientProtocolProvider<HttpClientSpi,
Http2ClientProtocolConfig> - Returns:
- protocol configuration
-
protocol
Description copied from interface:ClientProtocolProvider
Create a protocol client instance.- Specified by:
protocol
in interfaceClientProtocolProvider<HttpClientSpi,
Http2ClientProtocolConfig> - Parameters:
client
- webclient to useconfig
- configuration of the protocol- Returns:
- a new protocol client
-