java.lang.Object
io.helidon.cors.MappedCrossOriginConfig
- All Implemented Interfaces:
Iterable<Map.Entry<String,CrossOriginConfig>>
@Deprecated(forRemoval=true,
since="4.4.0")
public class MappedCrossOriginConfig
extends Object
implements Iterable<Map.Entry<String,CrossOriginConfig>>
Deprecated, for removal: This API element is subject to removal in a future version.
Cross-origin
CrossOriginConfig instances linked to paths, plus an enabled setting. Most developers will not
need to use this directly from their applications.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.Fluent builder forMappedcross-origin config. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated, for removal: This API element is subject to removal in a future version.Returns a new builder for creating aCrossOriginConfig.Mappedinstance.Deprecated, for removal: This API element is subject to removal in a future version.usebuilder(io.helidon.config.Config)insteadDeprecated, for removal: This API element is subject to removal in a future version.Creates a newMapped.Builderinstance using the provided configuration.static MappedCrossOriginConfigDeprecated, for removal: This API element is subject to removal in a future version.usecreate(io.helidon.config.Config)insteadstatic MappedCrossOriginConfigDeprecated, for removal: This API element is subject to removal in a future version.Creates a newMappedinstance using the provided configuration.voidforEach(BiConsumer<String, CrossOriginConfig> consumer) Deprecated, for removal: This API element is subject to removal in a future version.Invokes the specified consumer for each entry in the mapped CORS config.Deprecated, for removal: This API element is subject to removal in a future version.Finds theCrossOriginConfigassociated with the given path expression, if any.booleanDeprecated, for removal: This API element is subject to removal in a future version.Reports whether this instance is enabled.iterator()Deprecated, for removal: This API element is subject to removal in a future version.name()Deprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.Returns a new builder for creating aCrossOriginConfig.Mappedinstance.- Returns:
- the new builder
-
builder
@Deprecated(since="4.4.0", forRemoval=true) public static MappedCrossOriginConfig.Builder builder(Config config) Deprecated, for removal: This API element is subject to removal in a future version.usebuilder(io.helidon.config.Config)insteadCreates a newMapped.Builderinstance using the provided configuration.- Parameters:
config- node containingMappedcross-origin information- Returns:
- new
Mapped.Builderbased on the config
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newMapped.Builderinstance using the provided configuration.Although this method is equivalent to
builder().config(config)it conveniently combines those two steps for use as a method reference.- Parameters:
config- node containingMappedcross-origin information- Returns:
- new
Mapped.Builderbased on the config
-
create
@Deprecated(since="4.4.0", forRemoval=true) public static MappedCrossOriginConfig create(Config config) Deprecated, for removal: This API element is subject to removal in a future version.usecreate(io.helidon.config.Config)insteadCreates a newMappedinstance using the provided configuration.- Parameters:
config- node containingMappedcross-origin information- Returns:
- new
Mappedinstance based on the config
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newMappedinstance using the provided configuration.- Parameters:
config- node containingMappedcross-origin information- Returns:
- new
Mappedinstance based on the config
-
iterator
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
iteratorin interfaceIterable<Map.Entry<String,CrossOriginConfig>>
-
forEach
Deprecated, for removal: This API element is subject to removal in a future version.Invokes the specified consumer for each entry in the mapped CORS config.- Parameters:
consumer- accepts the path and theCrossOriginConfigfor processing
-
get
Deprecated, for removal: This API element is subject to removal in a future version.Finds theCrossOriginConfigassociated with the given path expression, if any.- Parameters:
pathPattern- path expression to match on- Returns:
Optionalof the corresponding basic cross-origin information
-
name
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the name set up for this CORS-enabled component or app
-
isEnabled
public boolean isEnabled()Deprecated, for removal: This API element is subject to removal in a future version.Reports whether this instance is enabled.- Returns:
- current enabled state
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-
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