Package io.quarkus.vertx.http.security
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.vertx.http.security.CORS
CORS.Builder -
Constructor Summary
ConstructorsConstructorDescriptionCORSImpl(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 aCORSImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessControlAllowCredentialsrecord component.Returns the value of theaccessControlMaxAgerecord component.booleanenabled()Enable the CORS filter.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexposedHeadersrecord component.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.methods()Returns the value of themethodsrecord component.origins()Returns the value of theoriginsrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aCORSImplrecord class.- Parameters:
accessControlAllowCredentials- the value for theaccessControlAllowCredentialsrecord componentaccessControlMaxAge- the value for theaccessControlMaxAgerecord componentexposedHeaders- the value for theexposedHeadersrecord componentheaders- the value for theheadersrecord componentmethods- the value for themethodsrecord componentorigins- the value for theoriginsrecord component
-
-
Method Details
-
enabled
public boolean enabled()Description copied from interface:CORSConfigEnable the CORS filter.- Specified by:
enabledin interfaceCORSConfig
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
accessControlAllowCredentials
Returns the value of theaccessControlAllowCredentialsrecord component.- Specified by:
accessControlAllowCredentialsin interfaceCORSConfig- Returns:
- the value of the
accessControlAllowCredentialsrecord component
-
accessControlMaxAge
Returns the value of theaccessControlMaxAgerecord component.- Specified by:
accessControlMaxAgein interfaceCORSConfig- Returns:
- the value of the
accessControlMaxAgerecord component
-
exposedHeaders
Returns the value of theexposedHeadersrecord component.- Specified by:
exposedHeadersin interfaceCORSConfig- Returns:
- the value of the
exposedHeadersrecord component
-
headers
Returns the value of theheadersrecord component.- Specified by:
headersin interfaceCORSConfig- Returns:
- the value of the
headersrecord component
-
methods
Returns the value of themethodsrecord component.- Specified by:
methodsin interfaceCORSConfig- Returns:
- the value of the
methodsrecord component
-
origins
Returns the value of theoriginsrecord component.- Specified by:
originsin interfaceCORSConfig- Returns:
- the value of the
originsrecord component
-