Package io.quarkus.vertx.http.security
Class CORS.Builder
java.lang.Object
io.quarkus.vertx.http.security.CORS.Builder
- Enclosing interface:
CORS
The Quarkus CORS filter configuration builder.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method is a shortcut foraccessControlAllowCredentials(true).accessControlAllowCredentials(boolean accessControlAllowCredentials) accessControlMaxAge(Duration accessControlMaxAge) build()Create a new CORS configuration.exposedHeader(String exposedHeader) This method is a shortcut forexposedHeaders(Set.of(exposedHeader)).exposedHeaders(Set<String> exposedHeaders) This method is a shortcut forheaders(Set.of(header)).This method is a shortcut formethods(Set.of(method)).This method is a shortcut fororigins(Set.of(origin)).
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
accessControlMaxAge
- Parameters:
accessControlMaxAge-CORSConfig.accessControlMaxAge()- Returns:
- this builder
-
accessControlAllowCredentials
This method is a shortcut foraccessControlAllowCredentials(true).- Returns:
- this builder
-
accessControlAllowCredentials
- Parameters:
accessControlAllowCredentials-CORSConfig.accessControlAllowCredentials()- Returns:
- this builder
-
exposedHeader
This method is a shortcut forexposedHeaders(Set.of(exposedHeader)).- Returns:
- this builder
-
exposedHeaders
- Parameters:
exposedHeaders-CORSConfig.exposedHeaders()- Returns:
- this builder
-
header
This method is a shortcut forheaders(Set.of(header)).- Returns:
- this builder
-
headers
- Parameters:
newHeaders-CORSConfig.headers()- Returns:
- this builder
-
method
This method is a shortcut formethods(Set.of(method)).- Returns:
- this builder
-
methods
- Parameters:
newMethods-CORSConfig.methods()- Returns:
- this builder
-
origin
This method is a shortcut fororigins(Set.of(origin)).- Returns:
- this builder
-
origins
- Parameters:
newOrigins-CORSConfig.origins()- Returns:
- this builder
-
build
Create a new CORS configuration.- Returns:
- CORS instance, which should be passed to the
HttpSecurityevent
-