Class CorsFeatureProvider

java.lang.Object
io.helidon.webserver.cors.CorsFeatureProvider
All Implemented Interfaces:
ConfiguredProvider<CorsFeature>, ConfiguredProvider<CorsFeature>, ServerFeatureProvider<CorsFeature>

@Deprecated(forRemoval=true, since="4.4.0") public class CorsFeatureProvider extends Object implements ServerFeatureProvider<CorsFeature>
Deprecated, for removal: This API element is subject to removal in a future version.
this class should never be used directly, and will be removed, you can get an instance of CorsFeature either from ServiceRegistry, 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
ServiceLoader provider implementation for CORS feature for WebServer.
  • Constructor Details

  • Method Details

    • configKey

      public String configKey()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ConfiguredProvider
      Key this service implementation is stored under. This is also considered the service "type" when used in a list in configuration, to allow the same service defined more than once.
      Specified by:
      configKey in interface ConfiguredProvider<CorsFeature>
      Specified by:
      configKey in interface ConfiguredProvider<CorsFeature>
      Returns:
      key of this implementation
    • create

      public CorsFeature create(Config config, String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ConfiguredProvider
      Create a new instance from the configuration located on the provided node.

      API Note: the default method implementation is provided for backward compatibility and will be removed in the next major version

      Specified by:
      create in interface ConfiguredProvider<CorsFeature>
      Parameters:
      config - located at ConfiguredProvider.configKey() node
      name - name of the configured implementation
      Returns:
      a new instance created from this config node