@Generated(value="org.immutables.processor.ProxyProcessor") public final class CorsConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CorsConfiguration.Builder
Builds instances of type
CorsConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
static CorsConfiguration.Builder |
builder()
Creates a builder for
CorsConfiguration. |
boolean |
equals(Object another)
This instance is equal to all instances of
CorsConfiguration that have equal attribute values. |
Boolean |
getAllowedCredentials()
Access-Control-Allow-Credentials header.
|
List<String> |
getAllowedHeaders()
Access-Control-Allow-Headers header.
|
List<String> |
getAllowedMethods()
Access-Control-Allow-Methods header.
|
List<String> |
getAllowedOriginPatterns()
Indicates whether a resource can be shared based by returning the value of the Origin patterns.
|
List<String> |
getAllowedOrigins()
Access-Control-Allow-Origin header.
|
List<String> |
getAllowedUriPatterns()
The list of allowed URI patterns.
|
List<String> |
getAllowedUris()
The list of allowed URIs.
|
Long |
getMaxAge()
Access-Control-Max-Age header.
|
int |
hashCode()
Computes a hash code from attributes:
allowedCredentials, allowedHeaders, allowedMethods, allowedOriginPatterns, allowedOrigins, allowedUriPatterns, allowedUris, maxAge. |
String |
toString()
Prints the immutable value
CorsConfiguration with attribute values. |
public Boolean getAllowedCredentials()
public List<String> getAllowedHeaders()
public List<String> getAllowedMethods()
public List<String> getAllowedOriginPatterns()
public List<String> getAllowedOrigins()
public Long getMaxAge()
public boolean equals(Object another)
CorsConfiguration that have equal attribute values.public int hashCode()
allowedCredentials, allowedHeaders, allowedMethods, allowedOriginPatterns, allowedOrigins, allowedUriPatterns, allowedUris, maxAge.public String toString()
CorsConfiguration with attribute values.public static CorsConfiguration.Builder builder()
CorsConfiguration.
CorsConfiguration.builder()
.allowedCredentials(Boolean) // required allowedCredentials
.allowedHeader|addAllAllowedHeaders(String) // allowedHeaders elements
.allowedMethod|addAllAllowedMethods(String) // allowedMethods elements
.allowedOriginPattern|addAllAllowedOriginPatterns(String) // allowedOriginPatterns elements
.allowedOrigin|addAllAllowedOrigins(String) // allowedOrigins elements
.allowedUriPattern|addAllAllowedUriPatterns(String) // allowedUriPatterns elements
.allowedUri|addAllAllowedUris(String) // allowedUris elements
.maxAge(Long) // required maxAge
.build();
Copyright © 2020. All rights reserved.