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