Record Class CORS.Builder.CORSImpl

java.lang.Object
java.lang.Record
io.quarkus.vertx.http.security.CORS.Builder.CORSImpl
All Implemented Interfaces:
CORSConfig, CORS
Enclosing class:
CORS.Builder

static record CORS.Builder.CORSImpl(Optional<Boolean> accessControlAllowCredentials, Optional<Duration> accessControlMaxAge, Optional<List<String>> exposedHeaders, Optional<List<String>> headers, Optional<List<String>> methods, Optional<List<String>> origins) extends Record implements CORS, CORSConfig
  • Constructor Details

    • CORSImpl

      CORSImpl(Optional<Boolean> accessControlAllowCredentials, Optional<Duration> accessControlMaxAge, Optional<List<String>> exposedHeaders, Optional<List<String>> headers, Optional<List<String>> methods, Optional<List<String>> origins)
      Creates an instance of a CORSImpl record class.
      Parameters:
      accessControlAllowCredentials - the value for the accessControlAllowCredentials record component
      accessControlMaxAge - the value for the accessControlMaxAge record component
      exposedHeaders - the value for the exposedHeaders record component
      headers - the value for the headers record component
      methods - the value for the methods record component
      origins - the value for the origins record component
  • Method Details

    • enabled

      public boolean enabled()
      Description copied from interface: CORSConfig
      Enable the CORS filter.
      Specified by:
      enabled in interface CORSConfig
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • accessControlAllowCredentials

      public Optional<Boolean> accessControlAllowCredentials()
      Returns the value of the accessControlAllowCredentials record component.
      Specified by:
      accessControlAllowCredentials in interface CORSConfig
      Returns:
      the value of the accessControlAllowCredentials record component
    • accessControlMaxAge

      public Optional<Duration> accessControlMaxAge()
      Returns the value of the accessControlMaxAge record component.
      Specified by:
      accessControlMaxAge in interface CORSConfig
      Returns:
      the value of the accessControlMaxAge record component
    • exposedHeaders

      public Optional<List<String>> exposedHeaders()
      Returns the value of the exposedHeaders record component.
      Specified by:
      exposedHeaders in interface CORSConfig
      Returns:
      the value of the exposedHeaders record component
    • headers

      public Optional<List<String>> headers()
      Returns the value of the headers record component.
      Specified by:
      headers in interface CORSConfig
      Returns:
      the value of the headers record component
    • methods

      public Optional<List<String>> methods()
      Returns the value of the methods record component.
      Specified by:
      methods in interface CORSConfig
      Returns:
      the value of the methods record component
    • origins

      public Optional<List<String>> origins()
      Returns the value of the origins record component.
      Specified by:
      origins in interface CORSConfig
      Returns:
      the value of the origins record component