Class HttpConfigBase.Builder
java.lang.Object
io.helidon.webclient.api.HttpConfigBase.BuilderBase<HttpConfigBase.Builder, HttpConfigBase>
io.helidon.webclient.api.HttpConfigBase.Builder
- All Implemented Interfaces:
Prototype.Builder<HttpConfigBase.Builder, HttpConfigBase>, Builder<HttpConfigBase.Builder, HttpConfigBase>, ConfigBuilderSupport.ConfiguredBuilder<HttpConfigBase.Builder, HttpConfigBase>, Supplier<HttpConfigBase>
- Enclosing interface:
HttpConfigBase
public static class HttpConfigBase.Builder
extends HttpConfigBase.BuilderBase<HttpConfigBase.Builder, HttpConfigBase>
implements Builder<HttpConfigBase.Builder, HttpConfigBase>
Fluent API builder for
HttpConfigBase.-
Nested Class Summary
Nested classes/interfaces inherited from class HttpConfigBase.BuilderBase
HttpConfigBase.BuilderBase.HttpConfigBaseImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class HttpConfigBase.BuilderBase
addProperties, clearConnectTimeout, clearReadTimeout, config, config, connectTimeout, connectTimeout, followRedirects, followRedirects, from, from, keepAlive, keepAlive, maxRedirects, maxRedirects, preBuildPrototype, properties, properties, proxy, proxy, proxy, proxy, putProperty, readTimeout, readTimeout, tls, tls, tls, tls, tls, toString, validatePrototypeModifier and TypeMethodDescriptionaddProperties(Map<String, String> properties) Properties configured for this client.Clear existing value of connectTimeout.Clear existing value of readTimeout.config()Configuration used to configure this instance.Update builder from configuration (node of this type).Connect timeout.connectTimeout(Duration connectTimeout) Connect timeout.booleanWhether to follow redirects.followRedirects(boolean followRedirects) Whether to follow redirects.from(HttpConfigBase prototype) Update this builder from an existing prototype instance.from(HttpConfigBase.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.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).keepAlive(boolean keepAlive) Determines 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.maxRedirects(int maxRedirects) Max number of followed redirects.protected voidHandles providers and decorators.Properties configured for this client.properties(Map<String, String> properties) Properties configured for this client.proxy()Proxy configuration to be used for requests.Proxy configuration to be used for requests.proxy(Consumer<Proxy.Builder> consumer) Proxy configuration to be used for requests.Proxy configuration to be used for requests.putProperty(String key, String property) Properties configured for this client.Read timeout.readTimeout(Duration readTimeout) Read timeout.tls()TLS configuration for any TLS request from this client.TLS configuration for any TLS request from this client.TLS configuration for any TLS request from this client.tls(Consumer<TlsConfig.Builder> consumer) TLS configuration for any TLS request from this client.TLS configuration for any TLS request from this client.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault HttpConfigBaseget()default HttpConfigBase.Builderidentity()Instance of this builder as the correct type.default HttpConfigBase.Builderupdate(Consumer<HttpConfigBase.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault HttpConfigBase.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<HttpConfigBase.Builder, HttpConfigBase>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<HttpConfigBase.Builder, HttpConfigBase>- Returns:
- instance of the built type
-