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
ConstructorsModifierConstructorDescriptionprotected
Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether to use keep alive by default.boolean
int
hashCode()
int
Configure the maximum allowed header size of the response.int
Configure the maximum allowed length of the status line from the response.name()
Name of this implementation, as provided inConfiguredProvider.create(Config, String)
.toString()
default String
type()
Type of this implementation, to distinguish instances of same type, with differentNamedService.name()
.boolean
Sets whether the request header format is validated or not.boolean
Sets 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:NamedService
Name of this implementation, as provided inConfiguredProvider.create(Config, String)
.- Specified by:
name
in interfaceHttp1ClientProtocolConfig
- Specified by:
name
in interfaceNamedService
- Returns:
- name of this service
-
defaultKeepAlive
public boolean defaultKeepAlive()Description copied from interface:Http1ClientProtocolConfig
Whether to use keep alive by default.- Specified by:
defaultKeepAlive
in interfaceHttp1ClientProtocolConfig
- Returns:
true
for keeping connections alive and re-using them for multiple requests (default),false
to create a new connection for each request
-
maxHeaderSize
public int maxHeaderSize()Description copied from interface:Http1ClientProtocolConfig
Configure the maximum allowed header size of the response.- Specified by:
maxHeaderSize
in interfaceHttp1ClientProtocolConfig
- Returns:
- maximum header size
-
maxStatusLineLength
public int maxStatusLineLength()Description copied from interface:Http1ClientProtocolConfig
Configure the maximum allowed length of the status line from the response.- Specified by:
maxStatusLineLength
in interfaceHttp1ClientProtocolConfig
- Returns:
- maximum status line length
-
validateRequestHeaders
public boolean validateRequestHeaders()Description copied from interface:Http1ClientProtocolConfig
Sets whether the request header format is validated or not.Defaults to
false
as user has control on the header creation.- Specified by:
validateRequestHeaders
in interfaceHttp1ClientProtocolConfig
- Returns:
- whether request header validation should be enabled
-
validateResponseHeaders
public boolean validateResponseHeaders()Description copied from interface:Http1ClientProtocolConfig
Sets whether the response header format is validated or not.Defaults to
true
.- Specified by:
validateResponseHeaders
in interfaceHttp1ClientProtocolConfig
- Returns:
- whether response header validation should be enabled
-
toString
-
equals
-
hashCode
public int hashCode() -
type
Description copied from interface:NamedService
Type of this implementation, to distinguish instances of same type, with differentNamedService.name()
. Use for exampleConfiguredProvider.configKey()
to define the type.- Specified by:
type
in interfaceNamedService
- Returns:
- type of this service
-