Class HstsFeatureConfig.BuilderBase<BUILDER extends HstsFeatureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HstsFeatureConfig>
java.lang.Object
io.helidon.webserver.hsts.HstsFeatureConfig.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>
- Direct Known Subclasses:
HstsFeatureConfig.Builder
- Enclosing interface:
HstsFeatureConfig
public abstract static class HstsFeatureConfig.BuilderBase<BUILDER extends HstsFeatureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HstsFeatureConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
HstsFeatureConfig.-
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 TypeMethodDescriptionaddSockets(Set<String> sockets) List of sockets to register this feature on.Clear all sockets.config()Configuration used to configure this instance.Update builder from configuration (node of this type).booleanenabled()Whether this feature is enabled.enabled(boolean enabled) Whether this feature is enabled.from(HstsFeatureConfig prototype) Update this builder from an existing prototype instance.from(HstsFeatureConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.booleanWhether the policy should apply to subdomains.includeSubDomains(boolean includeSubDomains) Whether the policy should apply to subdomains.maxAge()Max age of the HSTS policy.Max age of the HSTS policy.name()Name of this instance.Name of this instance.protected voidHandles providers and decorators.booleanpreload()Whether the policy should include the non-standard preload token used by browser preload lists.preload(boolean preload) Whether the policy should include the non-standard preload token used by browser preload lists.sockets()List of sockets to register this feature on.List of sockets to register this feature on.toString()protected voidValidates required properties.doubleweight()Weight of the HSTS feature.weight(double weight) Weight of the HSTS feature.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
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 HstsFeatureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HstsFeatureConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
weight
Weight of the HSTS feature.- Parameters:
weight- weight of the feature- Returns:
- updated builder instance
- See Also:
-
clearSockets
-
sockets
-
addSockets
-
name
-
enabled
Whether this feature is enabled.- Parameters:
enabled- whether enabled- Returns:
- updated builder instance
- See Also:
-
maxAge
-
includeSubDomains
Whether the policy should apply to subdomains.- Parameters:
includeSubDomains- whether subdomains are included- Returns:
- updated builder instance
- See Also:
-
preload
Whether the policy should include the non-standard preload token used by browser preload lists.- Parameters:
preload- whether preload token is enabled- Returns:
- updated builder instance
- See Also:
-
weight
public double weight()Weight of the HSTS feature.- Returns:
- weight of the feature
-
sockets
-
name
-
enabled
public boolean enabled()Whether this feature is enabled.- Returns:
- whether enabled
-
maxAge
-
includeSubDomains
public boolean includeSubDomains()Whether the policy should apply to subdomains.- Returns:
- whether subdomains are included
-
preload
public boolean preload()Whether the policy should include the non-standard preload token used by browser preload lists.- Returns:
- whether preload token is enabled
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
-