Module io.helidon.webclient.http1
Package io.helidon.webclient.http1
Class Http1ClientProtocolConfig.BuilderBase.Http1ClientProtocolConfigImpl
java.lang.Object
io.helidon.webclient.http1.Http1ClientProtocolConfig.BuilderBase.Http1ClientProtocolConfigImpl
- All Implemented Interfaces:
Prototype.Api,NamedService,Http1ClientProtocolConfig,ProtocolConfig
- Enclosing class:
Http1ClientProtocolConfig.BuilderBase<BUILDER extends Http1ClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends Http1ClientProtocolConfig>
protected static class Http1ClientProtocolConfig.BuilderBase.Http1ClientProtocolConfigImpl
extends Object
implements Http1ClientProtocolConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webclient.http1.Http1ClientProtocolConfig
Http1ClientProtocolConfig.Builder, Http1ClientProtocolConfig.BuilderBase<BUILDER extends Http1ClientProtocolConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends Http1ClientProtocolConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to use keep alive by default.booleaninthashCode()intConfigure the maximum allowed header size of the response.intConfigure the maximum allowed length of the status line from the response.name()Name of this implementation, as provided inConfiguredProvider.create(Config, String).toString()default Stringtype()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().booleanSets whether the request header format is validated or not.booleanSets whether the response header format is validated or not.
-
Constructor Details
-
Http1ClientProtocolConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
name
Description copied from interface:NamedServiceName of this implementation, as provided inConfiguredProvider.create(Config, String).- Specified by:
namein interfaceHttp1ClientProtocolConfig- Specified by:
namein interfaceNamedService- Returns:
- name of this service
-
defaultKeepAlive
public boolean defaultKeepAlive()Description copied from interface:Http1ClientProtocolConfigWhether to use keep alive by default.- Specified by:
defaultKeepAlivein interfaceHttp1ClientProtocolConfig- 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()Description copied from interface:Http1ClientProtocolConfigConfigure the maximum allowed header size of the response.- Specified by:
maxHeaderSizein interfaceHttp1ClientProtocolConfig- Returns:
- maximum header size
-
maxStatusLineLength
public int maxStatusLineLength()Description copied from interface:Http1ClientProtocolConfigConfigure the maximum allowed length of the status line from the response.- Specified by:
maxStatusLineLengthin interfaceHttp1ClientProtocolConfig- Returns:
- maximum status line length
-
validateRequestHeaders
public boolean validateRequestHeaders()Description copied from interface:Http1ClientProtocolConfigSets whether the request header format is validated or not.Defaults to
falseas user has control on the header creation.- Specified by:
validateRequestHeadersin interfaceHttp1ClientProtocolConfig- Returns:
- whether request header validation should be enabled
-
validateResponseHeaders
public boolean validateResponseHeaders()Description copied from interface:Http1ClientProtocolConfigSets whether the response header format is validated or not.Defaults to
true.- Specified by:
validateResponseHeadersin interfaceHttp1ClientProtocolConfig- Returns:
- whether response header validation should be enabled
-
toString
-
equals
-
hashCode
public int hashCode() -
type
Description copied from interface:NamedServiceType of this implementation, to distinguish instances of same type, with differentNamedService.name(). Use for exampleConfiguredProvider.configKey()to define the type.- Specified by:
typein interfaceNamedService- Returns:
- type of this service
-