Module io.helidon.webclient.api
Package io.helidon.webclient.api
Class WebClientConfig.BuilderBase.WebClientConfigImpl
java.lang.Object
io.helidon.webclient.api.HttpConfigBase.BuilderBase.HttpConfigBaseImpl
io.helidon.webclient.api.HttpClientConfig.BuilderBase.HttpClientConfigImpl
io.helidon.webclient.api.WebClientConfig.BuilderBase.WebClientConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<WebClient>,HttpClientConfig,HttpConfigBase,WebClientConfig,Supplier<WebClient>
- Enclosing class:
WebClientConfig.BuilderBase<BUILDER extends WebClientConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WebClientConfig>
protected static class WebClientConfig.BuilderBase.WebClientConfigImpl
extends HttpClientConfig.BuilderBase.HttpClientConfigImpl
implements WebClientConfig, Supplier<WebClient>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webclient.api.HttpClientConfig
HttpClientConfig.Builder, HttpClientConfig.BuilderBase<BUILDER extends HttpClientConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends HttpClientConfig> Nested classes/interfaces inherited from interface io.helidon.webclient.api.HttpConfigBase
HttpConfigBase.Builder, HttpConfigBase.BuilderBase<BUILDER extends HttpConfigBase.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends HttpConfigBase> Nested classes/interfaces inherited from interface io.helidon.webclient.api.WebClientConfig
WebClientConfig.Builder, WebClientConfig.BuilderBase<BUILDER extends WebClientConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WebClientConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWebClientConfigImpl(WebClientConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.default ClientRequestHeadersDefault headers as a headers object.booleanget()inthashCode()Configuration of client protocols.List of HTTP protocol IDs by order of preference.toString()Methods inherited from class io.helidon.webclient.api.HttpClientConfig.BuilderBase.HttpClientConfigImpl
baseFragment, baseQuery, baseUri, connectionCacheSize, contentEncoding, cookieManager, defaultHeadersMap, dnsAddressLookup, dnsResolver, executor, headers, maxInMemoryEntity, mediaContext, mediaSupports, mediaTypeParserMode, readContinueTimeout, relativeUris, sendExpectContinue, services, shareConnectionCache, socketOptions, writeBufferSizeMethods inherited from class io.helidon.webclient.api.HttpConfigBase.BuilderBase.HttpConfigBaseImpl
connectTimeout, followRedirects, keepAlive, maxRedirects, properties, proxy, readTimeout, tlsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.webclient.api.HttpClientConfig
baseFragment, baseQuery, baseUri, connectionCacheSize, contentEncoding, cookieManager, defaultHeadersMap, dnsAddressLookup, dnsResolver, executor, headers, maxInMemoryEntity, mediaContext, mediaSupports, mediaTypeParserMode, readContinueTimeout, relativeUris, sendExpectContinue, services, shareConnectionCache, socketOptions, writeBufferSizeMethods inherited from interface io.helidon.webclient.api.HttpConfigBase
connectTimeout, followRedirects, keepAlive, maxRedirects, properties, proxy, readTimeout, tls
-
Constructor Details
-
WebClientConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<WebClient>- Returns:
- new configured runtime instance
-
get
-
protocolConfigs
Description copied from interface:WebClientConfigConfiguration of client protocols.- Specified by:
protocolConfigsin interfaceWebClientConfig- Returns:
- client protocol configurations
-
protocolPreference
Description copied from interface:WebClientConfigList of HTTP protocol IDs by order of preference. If left empty, all discovered providers will be used, ordered by weight.For example if both HTTP/2 and HTTP/1.1 providers are available (considering HTTP/2 has higher weights), for ALPN we will send h2 and http/1.1 and decide based on response. If TLS is not used, we would attempt an upgrade (or use prior knowledge if configured in
WebClientConfig.protocolConfigs()).- Specified by:
protocolPreferencein interfaceWebClientConfig- Returns:
- list of HTTP protocol IDs in order of preference
-
toString
- Overrides:
toStringin classHttpClientConfig.BuilderBase.HttpClientConfigImpl
-
equals
- Overrides:
equalsin classHttpClientConfig.BuilderBase.HttpClientConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classHttpClientConfig.BuilderBase.HttpClientConfigImpl
-
defaultRequestHeaders
Default headers as a headers object. Creates a new instance for each call, so the returned value can be safely mutated.- Returns:
- default headers
-