Module io.helidon.webserver.cors
Package io.helidon.webserver.cors
Class MappedCrossOriginConfig.Builder
java.lang.Object
io.helidon.webserver.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 SummaryModifier 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- 
buildDescription copied from interface:BuilderBuild the instance from this builder.- Specified by:
- buildin interface- Builder<MappedCrossOriginConfig.Builder,- MappedCrossOriginConfig> 
- Returns:
- instance of the built type
 
- 
nameSets the name for the CORS-enabled component or app (primarily for logging).- Parameters:
- name- name for the component
- Returns:
- updated builder
 
- 
enabledSets whether the resultingMappedcross-origin config should be enabled.- Parameters:
- enabled- true to enable; false to disable
- Returns:
- updated builder
 
- 
putAdds a new builder to the collection, associating it with the given path.- Parameters:
- path- the path to link with the builder
- builder- the builder to use in building the actual- CrossOriginConfiginstance
- Returns:
- updated builder
 
- 
configApplies data in the provided config node.- Parameters:
- corsConfig-- Confignode containing CORS information
- Returns:
- updated builder
 
 
-