java.lang.Object
io.helidon.cors.MappedCrossOriginConfig.Builder
- All Implemented Interfaces:
 Builder<MappedCrossOriginConfig.Builder,,MappedCrossOriginConfig> Supplier<MappedCrossOriginConfig>
- Enclosing class:
 MappedCrossOriginConfig
public static class MappedCrossOriginConfig.Builder
extends Object
implements Builder<MappedCrossOriginConfig.Builder,MappedCrossOriginConfig> 
Fluent builder for 
Mapped cross-origin config.- 
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.Applies data in the provided config node.enabled(boolean enabled) Sets whether the resultingMappedcross-origin config should be enabled.Sets the name for the CORS-enabled component or app (primarily for logging).put(String path, CrossOriginConfig.Builder builder) Adds a new builder to the collection, associating it with the given path. 
- 
Method Details
- 
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
 buildin interfaceBuilder<MappedCrossOriginConfig.Builder,MappedCrossOriginConfig> - Returns:
 - instance of the built type
 
 - 
name
Sets the name for the CORS-enabled component or app (primarily for logging).- Parameters:
 name- name for the component- Returns:
 - updated builder
 
 - 
enabled
Sets whether the resultingMappedcross-origin config should be enabled.- Parameters:
 enabled- true to enable; false to disable- Returns:
 - updated builder
 
 - 
put
Adds a new builder to the collection, associating it with the given path.- Parameters:
 path- the path to link with the builderbuilder- the builder to use in building the actualCrossOriginConfiginstance- Returns:
 - updated builder
 
 - 
config
Applies data in the provided config node.- Parameters:
 corsConfig-Confignode containing CORS information- Returns:
 - updated builder
 
 
 -