Module io.helidon.webclient.http1
Package io.helidon.webclient.http1
Class Http1ClientProtocolConfig.BuilderBase<BUILDER extends Http1ClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Http1ClientProtocolConfig>
java.lang.Object
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> 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 Object
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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig()Configuration used to configure this instance.Deprecated.Update 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.Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingReadableEntity.buffer().maxBufferedEntitySize(Size maxBufferedEntitySize) Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingReadableEntity.buffer().intConfigure the maximum allowed header size of the response.maxHeaderSize(int maxHeaderSize) Configure the maximum allowed header size of the response.intConfigure 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 option.Name option.protected voidHandles providers and decorators.toString()protected voidValidates required properties.booleanSets whether the request header format is validated or not.validateRequestHeaders(boolean validateRequestHeaders) Sets whether the request header format is validated or not.booleanSets whether the response header format is validated or not.validateResponseHeaders(boolean validateResponseHeaders) Sets whether the response header format is validated or not.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.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
Deprecated.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> - Parameters:
config- configuration instance used to obtain values to update this builder- 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> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
name
Name option.- Parameters:
name- the name option- Returns:
- updated builder instance
- See Also:
-
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
Configure the maximum allowed header size of the response.- Parameters:
maxHeaderSize- maximum header 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:
-
maxBufferedEntitySize
Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingReadableEntity.buffer().- Parameters:
maxBufferedEntitySize- maximum size for a buffered entity- Returns:
- updated builder instance
- See Also:
-
validateRequestHeaders
Sets whether the request header format is validated or not.Defaults to
falseas user has control on the header creation.- Parameters:
validateRequestHeaders- whether request header validation should be enabled- Returns:
- updated builder instance
- See Also:
-
validateResponseHeaders
Sets whether the response header format is validated or not.Defaults to
true.- Parameters:
validateResponseHeaders- whether response header validation should be enabled- Returns:
- updated builder instance
- See Also:
-
name
Name option.- Returns:
- the name option
-
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
public int maxHeaderSize()Configure the maximum allowed header size of the response.- Returns:
- maximum header size
-
maxStatusLineLength
public int maxStatusLineLength()Configure the maximum allowed length of the status line from the response.- Returns:
- maximum status line length
-
maxBufferedEntitySize
Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingReadableEntity.buffer().- Returns:
- maximum size for a buffered entity
-
validateRequestHeaders
public boolean validateRequestHeaders()Sets whether the request header format is validated or not.Defaults to
falseas user has control on the header creation.- Returns:
- whether request header validation should be enabled
-
validateResponseHeaders
public boolean validateResponseHeaders()Sets whether the response header format is validated or not.Defaults to
true.- Returns:
- whether response header validation should be enabled
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
Configuration used to configure this instance.- Returns:
- config instance
-
config(io.helidon.config.Config)