Module io.helidon.webserver.context
Package io.helidon.webserver.context
Interface ContextFeatureConfig
- All Superinterfaces:
Prototype.Api
,Prototype.Factory<ContextFeature>
- All Known Implementing Classes:
ContextFeatureConfig.BuilderBase.ContextFeatureConfigImpl
Configuration of context feature.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forContextFeature
.static class
ContextFeatureConfig.BuilderBase<BUILDER extends ContextFeatureConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ContextFeatureConfig> Fluent API builder base forContextFeature
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContextFeatureConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static ContextFeatureConfig.Builder
builder
(ContextFeatureConfig instance) Create a new fluent API builder from an existing instance.static ContextFeatureConfig
create()
Create a new instance with default values.static ContextFeatureConfig
Deprecated.static ContextFeatureConfig
Create a new instance from configuration.name()
Name of this instance.records()
List of propagation records.sockets()
List of sockets to register this feature on.double
weight()
Weight of the context feature.Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
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
Deprecated.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 context feature. As it is used by other features, the default is quite high: 1100.0.- Returns:
- weight of the feature
-
sockets
List of sockets to register this feature on. If empty, it would get registered on all sockets.- Returns:
- socket names to register on, defaults to empty (all available sockets)
-
name
String name()Name of this instance.- Returns:
- instance name
-
records
List<ContextRecordConfig> records()List of propagation records.- Returns:
- records configuration
-
create(io.helidon.config.Config)