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 HttpClientConfig
HttpClientConfig.Builder, HttpClientConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forHttpClientConfig.static classHttpClientConfig.BuilderBase<BUILDER extends HttpClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpClientConfig>Fluent API builder base forHttpClientConfig.Nested classes/interfaces inherited from interface HttpConfigBase
HttpConfigBase.Builder, HttpConfigBase.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forHttpConfigBase.static classHttpConfigBase.BuilderBase<BUILDER extends HttpConfigBase.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpConfigBase>Fluent API builder base forHttpConfigBase.Nested classes/interfaces inherited from interface WebClientConfig
WebClientConfig.Builder, WebClientConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forWebClient.static classWebClientConfig.BuilderBase<BUILDER extends WebClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends WebClientConfig>Fluent API builder base forWebClientConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWebClientConfigImpl(WebClientConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Methods inherited from class HttpClientConfig.BuilderBase.HttpClientConfigImpl
altSvc, baseAddress, baseFragment, baseQuery, baseUri, connectionCacheSize, connectionListener, contentEncoding, cookieManager, defaultHeadersMap, dnsAddressLookup, dnsResolver, executor, filterRedirectHeaders, followCrossOriginEntityRedirects, headers, maxInMemoryEntity, mediaContext, mediaSupports, mediaTypeParserMode, readContinueTimeout, redirectSensitiveHeaders, relativeUris, sendExpectContinue, services, shareConnectionCache, sni, socketOptions, writeBufferSizeModifier and TypeMethodDescriptionaltSvc()Client policy for accepting and using HTTPAlt-Svcresponse advertisements.Base address used by the client in all requests.Base fragment used by the client in all requests (unless overwritten on per-request basis).Base query used by the client in all requests.baseUri()Base uri used by the client in all requests.intMaximum number of reusable physical connections each HTTP protocol retains for a single connection target.Socket lifecycle callbacks.Configure the listener specificContentEncodingContext.WebClient cookie manager.Default headers to be used in every request from configuration.DNS address lookup preferences to be used by this client.DNS resolver to be used by this client.executor()Client executor service.booleanWhether headers sensitive to cross-origin redirects should be filtered before the redirected request is sent.booleanWhether redirects that preserve request method and entity may be followed across origins.headers()Default headers to be used in every request.intIf the entity is expected to be smaller that this number of bytes, it would be buffered in memory to optimize performance.Configure the listener specificMediaContext.Media supports (manually added).Configure media type parsing mode for HTTPContent-Typeheader.Socket 100-Continue read timeout.Request header names to strip on cross-origin redirects.booleanCan be set totrueto force the use of relative URIs in all requests, regardless of the presence or absence of proxies or no-proxy lists.booleanWhether Expect-100-Continue header is sent to verify server availability before sending an entity.services()WebClient services.booleanWhether to use protocol-specific JVM-wide connection caches shared by compatible WebClient instances.sni()Client-side TLS SNI configuration.Socket options for connections opened by this client.intBuffer size used when writing data to the underlying socket on a client TCP connection.Methods inherited from class HttpConfigBase.BuilderBase.HttpConfigBaseImpl
connectTimeout, followRedirects, keepAlive, maxRedirects, properties, proxy, readTimeout, tlsModifier and TypeMethodDescriptionConnect timeout.booleanWhether to follow redirects.booleanDetermines if connection keep alive is enabled (NOT socket keep alive, but HTTP connection keep alive, to re-use the same connection for multiple requests).intMax number of followed redirects.Properties configured for this client.proxy()Proxy configuration to be used for requests.Read timeout.tls()TLS configuration for any TLS request from this client.Methods inherited from interface HttpClientConfig
defaultRequestHeadersModifier and TypeMethodDescriptiondefault ClientRequestHeadersDefault headers as a headers object.
-
Constructor Details
-
WebClientConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Create a new runtime instance from this prototype.- 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
-