java.lang.Object
io.helidon.webserver.cors.CrossOriginConfig.Builder
- All Implemented Interfaces:
Builder<CrossOriginConfig.Builder,
,CrossOriginConfig> Supplier<CrossOriginConfig>
- Enclosing class:
- CrossOriginConfig
public static class CrossOriginConfig.Builder
extends Object
implements Builder<CrossOriginConfig.Builder,CrossOriginConfig>
Builder for
CrossOriginConfig
.-
Method Summary
Modifier and TypeMethodDescriptionallowCredentials
(boolean allowCredentials) allowHeaders
(String... allowHeaders) allowMethods
(String... allowMethods) allowOrigins
(String... origins) build()
Build the instance from this builder.Augment or override existing settings using the providedConfig
node.enabled
(boolean enabled) exposeHeaders
(String... exposeHeaders) maxAgeSeconds
(long maxAgeSeconds) pathPattern
(String pathPattern) Updates the path prefix for this cross-origin config.toString()
-
Method Details
-
pathPattern
Updates the path prefix for this cross-origin config.- Parameters:
pathPattern
- new path prefix- Returns:
- updated builder
-
enabled
-
allowOrigins
-
allowHeaders
-
exposeHeaders
-
allowMethods
-
allowCredentials
-
maxAgeSeconds
-
config
Augment or override existing settings using the providedConfig
node.- Parameters:
corsConfig
- config node containing CORS information- Returns:
- updated builder
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<CrossOriginConfig.Builder,
CrossOriginConfig> - Returns:
- instance of the built type
-
toString
-