Module io.helidon.webclient.api
Package io.helidon.webclient.api
Class WebClientCookieManagerConfig.BuilderBase<BUILDER extends WebClientCookieManagerConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends WebClientCookieManagerConfig>
java.lang.Object
io.helidon.webclient.api.WebClientCookieManagerConfig.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> Prototype.ConfiguredBuilder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
WebClientCookieManagerConfig.Builder
- Enclosing interface:
WebClientCookieManagerConfig
public abstract static class WebClientCookieManagerConfig.BuilderBase<BUILDER extends WebClientCookieManagerConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends WebClientCookieManagerConfig>
extends Object
implements Prototype.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
WebClientCookieManager
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDefaultCookies
(Map<? extends String, ? extends String> defaultCookies) This method keeps existing values, then puts all new values into the map.boolean
Whether automatic cookie store is enabled or not.automaticStoreEnabled
(boolean automaticStoreEnabled) Whether automatic cookie store is enabled or not.Clear existing value of this property.config()
If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).Current cookie policy for this client.cookiePolicy
(CookiePolicy cookiePolicy) Current cookie policy for this client.The cookie store where cookies are kept.cookieStore
(CookieStore cookieStore) The cookie store where cookies are kept.Map of default cookies to include in all requests if cookies enabled.defaultCookies
(Map<? extends String, ? extends String> defaultCookies) This method replaces all values with the new ones.from
(WebClientCookieManagerConfig prototype) Update this builder from an existing prototype instance.from
(WebClientCookieManagerConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected void
Handles providers and decorators.putDefaultCookie
(String key, String defaultCookie) This method adds a new value to the map, or replaces it if the key already exists.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
Methods inherited from interface io.helidon.builder.api.Prototype.ConfiguredBuilder
discoverService, discoverServices
-
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:
config
in interfacePrototype.ConfiguredBuilder<BUILDER extends WebClientCookieManagerConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends WebClientCookieManagerConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
automaticStoreEnabled
Whether automatic cookie store is enabled or not.- Parameters:
automaticStoreEnabled
- status of cookie store- Returns:
- updated builder instance
- See Also:
-
cookiePolicy
Current cookie policy for this client.- Parameters:
cookiePolicy
- the cookie policy- Returns:
- updated builder instance
- See Also:
-
defaultCookies
This method replaces all values with the new ones.- Parameters:
defaultCookies
- map of default cookies- Returns:
- updated builder instance
- See Also:
-
addDefaultCookies
This method keeps existing values, then puts all new values into the map.- Parameters:
defaultCookies
- map of default cookies- Returns:
- updated builder instance
- See Also:
-
putDefaultCookie
This method adds a new value to the map, or replaces it if the key already exists.- Parameters:
key
- key to add or replacedefaultCookie
- new value for the key- Returns:
- updated builder instance
- See Also:
-
clearCookieStore
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
cookieStore
The cookie store where cookies are kept. If not defined, JDK default is used (in memory store).- Parameters:
cookieStore
- cookie store- Returns:
- updated builder instance
- See Also:
-
automaticStoreEnabled
public boolean automaticStoreEnabled()Whether automatic cookie store is enabled or not.- Returns:
- the automatic store enabled
-
cookiePolicy
Current cookie policy for this client.- Returns:
- the cookie policy
-
defaultCookies
Map of default cookies to include in all requests if cookies enabled.- Returns:
- the default cookies
-
cookieStore
The cookie store where cookies are kept. If not defined, JDK default is used (in memory store).- Returns:
- the cookie store
-
config
If this instance was configured, this would be the config instance used.- Returns:
- config node used to configure this builder, or empty if not configured
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-