- All Superinterfaces:
Prototype.Api
,Prototype.Factory<CorsFeature>
- All Known Implementing Classes:
CorsConfig.BuilderBase.CorsConfigImpl
Configuration of CORS feature.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forCorsFeature
.static class
CorsConfig.BuilderBase<BUILDER extends CorsConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CorsConfig> Fluent API builder base forCorsFeature
. -
Method Summary
Modifier and TypeMethodDescriptionstatic CorsConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static CorsConfig.Builder
builder
(CorsConfig instance) Create a new fluent API builder from an existing instance.config()
Access to config that was used to create this feature.static CorsConfig
Create a new instance from configuration.boolean
enabled()
This feature can be disabled.name()
Name of this instance.sockets()
List of sockets to register this feature on.double
weight()
Weight of the CORS 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
-
weight
double weight()Weight of the CORS feature. As it is used by other features, the default is quite high: 850.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
-
enabled
boolean enabled()This feature can be disabled.- Returns:
- whether the feature is enabled
-
config
Access to config that was used to create this feature.- Returns:
- configuration
-