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

public interface CorsSetter<T>
Defines common behavior between CrossOriginConfig and CorsSupportBase.Builder for assigning CORS-related attributes.
  • Method Details

    • enabled

      T enabled(boolean enabled)
      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)
      Sets the allowOrigins.
      Parameters:
      origins - the origin value(s)
      Returns:
      updated setter
    • allowHeaders

      T allowHeaders(String... allowHeaders)
      Sets the allow headers.
      Parameters:
      allowHeaders - the allow headers value(s)
      Returns:
      updated setter
    • exposeHeaders

      T exposeHeaders(String... exposeHeaders)
      Sets the expose headers.
      Parameters:
      exposeHeaders - the expose headers value(s)
      Returns:
      updated setter
    • allowMethods

      T allowMethods(String... allowMethods)
      Sets the allow methods.
      Parameters:
      allowMethods - the allow method value(s)
      Returns:
      updated setter
    • allowCredentials

      T allowCredentials(boolean allowCredentials)
      Sets the allow credentials flag.
      Parameters:
      allowCredentials - the allow credentials flag
      Returns:
      updated setter
    • maxAgeSeconds

      T maxAgeSeconds(long maxAgeSeconds)
      Sets the maximum age.
      Parameters:
      maxAgeSeconds - the maximum age
      Returns:
      updated setter