Interface CorsSetter<T>

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(forRemoval=true, since="4.4.0") public interface CorsSetter<T>
Deprecated, for removal: This API element is subject to removal in a future version.
this module will be removed, CORS configuration is centralized to module helidon-webserver-cors with io.helidon.webserver.cors.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; this class will be removed in a future version of Helidon
Defines common behavior between CrossOriginConfig and CorsSupportBase.Builder for assigning CORS-related attributes.
  • Method Summary

    Modifier and Type
    Method
    Description
    allowCredentials(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

      T 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.
      Parameters:
      enabled - true for this config to have effect; false for it to be ignored
      Returns:
      updated setter
    • allowOrigins

      T allowOrigins(String... origins)
      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

      T allowHeaders(String... 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

      T exposeHeaders(String... 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

      T allowMethods(String... 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

      T allowCredentials(boolean 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

      T maxAgeSeconds(long 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