Class CorsHandler.Config

java.lang.Object
org.elasticsearch.http.CorsHandler.Config
Enclosing class:
CorsHandler

public static class CorsHandler.Config extends Object
  • Constructor Details

    • Config

      public Config(org.elasticsearch.http.CorsHandler.Config.Builder builder)
  • Method Details

    • isCorsSupportEnabled

      public boolean isCorsSupportEnabled()
    • isAnyOriginSupported

      public boolean isAnyOriginSupported()
    • isOriginAllowed

      public boolean isOriginAllowed(String origin)
    • isCredentialsAllowed

      public boolean isCredentialsAllowed()
    • allowedRequestMethods

      public Set<RestRequest.Method> allowedRequestMethods()
    • allowedRequestHeaders

      public Set<String> allowedRequestHeaders()
    • maxAge

      public long maxAge()
    • origins

      public Optional<Set<String>> origins()
    • toString

      public String toString()
      Overrides:
      toString in class Object