Interface HstsFeatureConfig
- All Superinterfaces:
Prototype.Api, Prototype.Factory<HstsFeature>
- All Known Implementing Classes:
HstsFeatureConfig.BuilderBase.HstsFeatureConfigImpl
Configuration of the HSTS feature.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forHstsFeature.static classHstsFeatureConfig.BuilderBase<BUILDER extends HstsFeatureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HstsFeatureConfig>Fluent API builder base forHstsFeatureConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic HstsFeatureConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static HstsFeatureConfig.Builderbuilder(HstsFeatureConfig instance) Create a new fluent API builder from an existing instance.static HstsFeatureConfigcreate()Create a new instance with default values.static HstsFeatureConfigCreate a new instance from configuration.booleanenabled()Whether this feature is enabled.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.doubleweight()Weight of the HSTS feature.Methods inherited from interface Prototype.Factory
buildModifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
weight
double weight()Weight of the HSTS feature.- Returns:
- weight of the feature
-
sockets
-
name
-
enabled
boolean enabled()Whether this feature is enabled.- Returns:
- whether enabled
-
maxAge
-
includeSubDomains
boolean includeSubDomains()Whether the policy should apply to subdomains.- Returns:
- whether subdomains are included
-
preload
boolean preload()Whether the policy should include the non-standard preload token used by browser preload lists.- Returns:
- whether preload token is enabled
-