Class HstsFeatureConfig.BuilderBase.HstsFeatureConfigImpl
java.lang.Object
io.helidon.webserver.hsts.HstsFeatureConfig.BuilderBase.HstsFeatureConfigImpl
- All Implemented Interfaces:
Prototype.Api, Prototype.Factory<HstsFeature>, HstsFeatureConfig, Supplier<HstsFeature>
- Enclosing class:
HstsFeatureConfig.BuilderBase<BUILDER extends HstsFeatureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HstsFeatureConfig>
protected static class HstsFeatureConfig.BuilderBase.HstsFeatureConfigImpl
extends Object
implements HstsFeatureConfig, Supplier<HstsFeature>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface HstsFeatureConfig
HstsFeatureConfig.Builder, HstsFeatureConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forHstsFeature.static classHstsFeatureConfig.BuilderBase<BUILDER extends HstsFeatureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HstsFeatureConfig>Fluent API builder base forHstsFeatureConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHstsFeatureConfigImpl(HstsFeatureConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new runtime instance from this prototype.booleanenabled()Whether this feature is enabled.booleanget()inthashCode()booleanWhether the policy should apply to subdomains.maxAge()Max age of the HSTS policy.name()Name of this instance.booleanpreload()Whether the policy should include the non-standard preload token used by browser preload lists.sockets()List of sockets to register this feature on.toString()doubleweight()Weight of the HSTS feature.
-
Constructor Details
-
HstsFeatureConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Create a new runtime instance from this prototype.- Specified by:
buildin interfacePrototype.Factory<HstsFeature>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<HstsFeature>
-
weight
public double weight()Description copied from interface:HstsFeatureConfigWeight of the HSTS feature.- Specified by:
weightin interfaceHstsFeatureConfig- Returns:
- weight of the feature
-
sockets
Description copied from interface:HstsFeatureConfigList of sockets to register this feature on. If empty, it is registered on all sockets.- Specified by:
socketsin interfaceHstsFeatureConfig- Returns:
- socket names to register on, defaults to empty (all available sockets)
-
name
Description copied from interface:HstsFeatureConfigName of this instance.- Specified by:
namein interfaceHstsFeatureConfig- Returns:
- instance name
-
enabled
public boolean enabled()Description copied from interface:HstsFeatureConfigWhether this feature is enabled.- Specified by:
enabledin interfaceHstsFeatureConfig- Returns:
- whether enabled
-
maxAge
Description copied from interface:HstsFeatureConfigMax age of the HSTS policy.- Specified by:
maxAgein interfaceHstsFeatureConfig- Returns:
- max age
-
includeSubDomains
public boolean includeSubDomains()Description copied from interface:HstsFeatureConfigWhether the policy should apply to subdomains.- Specified by:
includeSubDomainsin interfaceHstsFeatureConfig- Returns:
- whether subdomains are included
-
preload
public boolean preload()Description copied from interface:HstsFeatureConfigWhether the policy should include the non-standard preload token used by browser preload lists.- Specified by:
preloadin interfaceHstsFeatureConfig- Returns:
- whether preload token is enabled
-
toString
-
equals
-
hashCode
-