Module io.helidon.webclient.api
Package io.helidon.webclient.api
Class HttpClientConfig.BuilderBase.HttpClientConfigImpl
java.lang.Object
io.helidon.webclient.api.HttpConfigBase.BuilderBase.HttpConfigBaseImpl
io.helidon.webclient.api.HttpClientConfig.BuilderBase.HttpClientConfigImpl
- All Implemented Interfaces:
Prototype.Api
,HttpClientConfig
,HttpConfigBase
- Direct Known Subclasses:
GrpcClientConfig.BuilderBase.GrpcClientConfigImpl
,Http1ClientConfig.BuilderBase.Http1ClientConfigImpl
,Http2ClientConfig.BuilderBase.Http2ClientConfigImpl
,WebClientConfig.BuilderBase.WebClientConfigImpl
,WsClientConfig.BuilderBase.WsClientConfigImpl
- Enclosing class:
HttpClientConfig.BuilderBase<BUILDER extends HttpClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends HttpClientConfig>
protected static class HttpClientConfig.BuilderBase.HttpClientConfigImpl
extends HttpConfigBase.BuilderBase.HttpConfigBaseImpl
implements HttpClientConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webclient.api.HttpClientConfig
HttpClientConfig.Builder, HttpClientConfig.BuilderBase<BUILDER extends HttpClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends HttpClientConfig> Nested classes/interfaces inherited from interface io.helidon.webclient.api.HttpConfigBase
HttpConfigBase.Builder, HttpConfigBase.BuilderBase<BUILDER extends HttpConfigBase.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends HttpConfigBase> -
Constructor Summary
ModifierConstructorDescriptionprotected
HttpClientConfigImpl
(HttpClientConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbaseUri()
int
Connect timeout.default ClientRequestHeaders
Default headers as a headers object.boolean
executor()
boolean
Whether to follow redirects.int
hashCode()
headers()
boolean
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).int
int
Max number of followed redirects.Properties configured for this client.proxy()
Proxy configuration to be used for requests.Read timeout.boolean
boolean
services()
boolean
tls()
TLS configuration for any TLS request from this client.toString()
Methods inherited from class io.helidon.webclient.api.HttpConfigBase.BuilderBase.HttpConfigBaseImpl
connectTimeout, followRedirects, keepAlive, maxRedirects, properties, proxy, readTimeout, tls
-
Constructor Details
-
HttpClientConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
baseUri
-
baseQuery
-
baseFragment
-
socketOptions
-
dnsResolver
-
dnsAddressLookup
-
defaultHeadersMap
-
headers
-
mediaTypeParserMode
-
contentEncoding
-
mediaContext
-
mediaSupports
-
services
-
relativeUris
public boolean relativeUris() -
executor
-
sendExpectContinue
public boolean sendExpectContinue() -
connectionCacheSize
public int connectionCacheSize() -
cookieManager
-
readContinueTimeout
-
maxInMemoryEntity
public int maxInMemoryEntity() -
toString
- Overrides:
toString
in classHttpConfigBase.BuilderBase.HttpConfigBaseImpl
-
equals
- Overrides:
equals
in classHttpConfigBase.BuilderBase.HttpConfigBaseImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classHttpConfigBase.BuilderBase.HttpConfigBaseImpl
-
defaultRequestHeaders
Default headers as a headers object. Creates a new instance for each call, so the returned value can be safely mutated.- Returns:
- default headers
-
followRedirects
boolean followRedirects()Whether to follow redirects.- Returns:
- whether to follow redirects
-
maxRedirects
int maxRedirects()Max number of followed redirects. This is ignored iffollowRedirects()
option isfalse
.- Returns:
- max number of followed redirects
-
tls
Tls tls()TLS configuration for any TLS request from this client. TLS can also be configured per request. TLS is used when the protocol is set tohttps
.- Returns:
- TLS configuration to use
-
readTimeout
Read timeout.- Returns:
- read timeout
- See Also:
-
connectTimeout
Connect timeout.- Returns:
- connect timeout
- See Also:
-
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).- Returns:
- keep alive for this connection
- See Also:
-
proxy
Proxy proxy()Proxy configuration to be used for requests.- Returns:
- proxy to use, defaults to
Proxy.noProxy()
-
properties
Properties configured for this client. These properties are propagated through client request, to be used by services (and possibly for other purposes).- Returns:
- map of client properties
-