Class Http1ClientProtocolConfig.BuilderBase<BUILDER extends Http1ClientProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends Http1ClientProtocolConfig>
java.lang.Object
io.helidon.http.HttpConfig.BuilderBase<BUILDER, PROTOTYPE>
io.helidon.webclient.http1.Http1ClientProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
- Direct Known Subclasses:
Http1ClientProtocolConfig.Builder
- Enclosing interface:
Http1ClientProtocolConfig
public abstract static class Http1ClientProtocolConfig.BuilderBase<BUILDER extends Http1ClientProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends Http1ClientProtocolConfig>
extends HttpConfig.BuilderBase<BUILDER, PROTOTYPE>
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
Http1ClientProtocolConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class HttpConfig.BuilderBase
HttpConfig.BuilderBase.HttpConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUpdate builder from configuration (node of this type).booleanWhether to use keep alive by default.defaultKeepAlive(boolean defaultKeepAlive) Whether to use keep alive by default.from(Http1ClientProtocolConfig prototype) Update this builder from an existing prototype instance.from(Http1ClientProtocolConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.intDeprecated.maxHeaderSize(int maxHeaderSize) Deprecated.This option is deprecated, useHttpConfig.BuilderBase.maxHeadersSizeinsteadintConfigure the maximum allowed length of the status line from the response.maxStatusLineLength(int maxStatusLineLength) Configure the maximum allowed length of the status line from the response.name()Name of this protocol configuration.Name of this protocol configuration.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class HttpConfig.BuilderBase
config, from, from, log, log, log, log, maxBufferedEntitySize, maxBufferedEntitySize, maxHeadersSize, maxHeadersSize, validateRequestHeaders, validateRequestHeaders, validateResponseHeaders, validateResponseHeadersModifier and TypeMethodDescriptionconfig()Configuration used to configure this instance.from(HttpConfig prototype) Update this builder from an existing prototype instance.from(HttpConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.log()HTTP Log configuration.log(HttpLogConfig log) HTTP Log configuration.log(Consumer<HttpLogConfig.Builder> consumer) HTTP Log configuration.log(Supplier<? extends HttpLogConfig> supplier) HTTP Log configuration.Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().maxBufferedEntitySize(Size maxBufferedEntitySize) Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().intConfigure the maximum allowed headers size, which must be greater than0.maxHeadersSize(int maxHeadersSize) Configure the maximum allowed headers size, which must be greater than0.booleanWhether to validate request headers.validateRequestHeaders(boolean validateRequestHeaders) Whether to validate request headers.booleanWhether to validate response headers.validateResponseHeaders(boolean validateResponseHeaders) Whether to validate response headers.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends Http1ClientProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends Http1ClientProtocolConfig>- Overrides:
configin classHttpConfig.BuilderBase<BUILDER extends Http1ClientProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends Http1ClientProtocolConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
name
-
defaultKeepAlive
Whether to use keep alive by default.- Parameters:
defaultKeepAlive-truefor keeping connections alive and re-using them for multiple requests (default),falseto create a new connection for each request- Returns:
- updated builder instance
- See Also:
-
maxHeaderSize
Deprecated.This option is deprecated, useHttpConfig.BuilderBase.maxHeadersSizeinsteadConfigure the maximum allowed headers size of the response, which must be greater than0.If both
max-header-sizeandmax-headers-sizeare configured, the deprecatedmax-header-sizekey takes precedence for backward compatibility.- Parameters:
maxHeaderSize- maximum headers size- Returns:
- updated builder instance
- See Also:
-
maxStatusLineLength
Configure the maximum allowed length of the status line from the response.- Parameters:
maxStatusLineLength- maximum status line length- Returns:
- updated builder instance
- See Also:
-
name
-
defaultKeepAlive
public boolean defaultKeepAlive()Whether to use keep alive by default.- Returns:
truefor keeping connections alive and re-using them for multiple requests (default),falseto create a new connection for each request
-
maxHeaderSize
Deprecated.This option is deprecated, useHttpConfig.BuilderBase.maxHeadersSizeinsteadConfigure the maximum allowed headers size of the response, which must be greater than0.If both
max-header-sizeandmax-headers-sizeare configured, the deprecatedmax-header-sizekey takes precedence for backward compatibility.- Returns:
- maximum headers size
-
maxStatusLineLength
public int maxStatusLineLength()Configure the maximum allowed length of the status line from the response.- Returns:
- maximum status line length
-
toString
- Overrides:
toStringin classHttpConfig.BuilderBase<BUILDER extends Http1ClientProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends Http1ClientProtocolConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classHttpConfig.BuilderBase<BUILDER extends Http1ClientProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends Http1ClientProtocolConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classHttpConfig.BuilderBase<BUILDER extends Http1ClientProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends Http1ClientProtocolConfig>
-
HttpConfig.BuilderBase.maxHeadersSizeinstead