Class HstsFeatureConfig.Builder
java.lang.Object
io.helidon.webserver.hsts.HstsFeatureConfig.BuilderBase<HstsFeatureConfig.Builder, HstsFeatureConfig>
io.helidon.webserver.hsts.HstsFeatureConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<HstsFeatureConfig.Builder, HstsFeatureConfig>, Builder<HstsFeatureConfig.Builder, HstsFeature>, ConfigBuilderSupport.ConfiguredBuilder<HstsFeatureConfig.Builder, HstsFeatureConfig>, Supplier<HstsFeature>
- Enclosing interface:
HstsFeatureConfig
public static class HstsFeatureConfig.Builder
extends HstsFeatureConfig.BuilderBase<HstsFeatureConfig.Builder, HstsFeatureConfig>
implements Builder<HstsFeatureConfig.Builder, HstsFeature>
Fluent API builder for
HstsFeature.-
Nested Class Summary
Nested classes/interfaces inherited from class HstsFeatureConfig.BuilderBase
HstsFeatureConfig.BuilderBase.HstsFeatureConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class HstsFeatureConfig.BuilderBase
addSockets, clearSockets, config, config, enabled, enabled, from, from, includeSubDomains, includeSubDomains, maxAge, maxAge, name, name, preBuildPrototype, preload, preload, sockets, sockets, toString, validatePrototype, weight, weightModifier 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 Builder
get, identity, updateModifier and TypeMethodDescriptiondefault HstsFeatureget()default HstsFeatureConfig.Builderidentity()Instance of this builder as the correct type.default HstsFeatureConfig.Builderupdate(Consumer<HstsFeatureConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault HstsFeatureConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<HstsFeatureConfig.Builder, HstsFeatureConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<HstsFeatureConfig.Builder, HstsFeature>- Returns:
- instance of the built type
-