- Type Parameters:
T- the type of the implementing class so the fluid methods can return the correct type
- All Known Implementing Classes:
CorsSupport.Builder,CorsSupportBase.Builder,CrossOriginConfig.Builder
Deprecated, for removal: This API element is subject to removal in a future version.
Defines common behavior between
CrossOriginConfig and CorsSupportBase.Builder for assigning CORS-related
attributes.-
Method Summary
Modifier and TypeMethodDescriptionallowCredentials(boolean allowCredentials) Deprecated, for removal: This API element is subject to removal in a future version.Sets the allow credentials flag.allowHeaders(String... allowHeaders) Deprecated, for removal: This API element is subject to removal in a future version.Sets the allow headers.allowMethods(String... allowMethods) Deprecated, for removal: This API element is subject to removal in a future version.Sets the allow methods.allowOrigins(String... origins) Deprecated, for removal: This API element is subject to removal in a future version.Sets the allowOrigins.enabled(boolean enabled) Deprecated, for removal: This API element is subject to removal in a future version.Sets whether this config should be enabled or not.exposeHeaders(String... exposeHeaders) Deprecated, for removal: This API element is subject to removal in a future version.Sets the expose headers.maxAgeSeconds(long maxAgeSeconds) Deprecated, for removal: This API element is subject to removal in a future version.Sets the maximum age.
-
Method Details
-
enabled
Deprecated, for removal: This API element is subject to removal in a future version.Sets whether this config should be enabled or not.- Parameters:
enabled- true for this config to have effect; false for it to be ignored- Returns:
- updated setter
-
allowOrigins
Deprecated, for removal: This API element is subject to removal in a future version.Sets the allowOrigins.- Parameters:
origins- the origin value(s)- Returns:
- updated setter
-
allowHeaders
Deprecated, for removal: This API element is subject to removal in a future version.Sets the allow headers.- Parameters:
allowHeaders- the allow headers value(s)- Returns:
- updated setter
-
exposeHeaders
Deprecated, for removal: This API element is subject to removal in a future version.Sets the expose headers.- Parameters:
exposeHeaders- the expose headers value(s)- Returns:
- updated setter
-
allowMethods
Deprecated, for removal: This API element is subject to removal in a future version.Sets the allow methods.- Parameters:
allowMethods- the allow method value(s)- Returns:
- updated setter
-
allowCredentials
Deprecated, for removal: This API element is subject to removal in a future version.Sets the allow credentials flag.- Parameters:
allowCredentials- the allow credentials flag- Returns:
- updated setter
-
maxAgeSeconds
Deprecated, for removal: This API element is subject to removal in a future version.Sets the maximum age.- Parameters:
maxAgeSeconds- the maximum age- Returns:
- updated setter
-
helidon-webserver-corswithio.helidon.webserver.cors.CorsFeatureeither fromServiceRegistry, or through one of the feature's static factory or builder methods; paths configured in config are registered first, before paths configured through service registry; this class will be removed in a future version of Helidon