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:
io.helidon.common.Builder<MappedCrossOriginConfig.Builder,,MappedCrossOriginConfig> Supplier<MappedCrossOriginConfig>
- Enclosing class:
- MappedCrossOriginConfig
public static class MappedCrossOriginConfig.Builder
extends Object
implements io.helidon.common.Builder<MappedCrossOriginConfig.Builder,MappedCrossOriginConfig>
Fluent builder for
Mapped cross-origin config.-
Method Summary
Modifier and TypeMethodDescriptionbuild()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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
get, identity, update
-
Method Details
-
build
- Specified by:
buildin interfaceio.helidon.common.Builder<MappedCrossOriginConfig.Builder,MappedCrossOriginConfig>
-
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
-