public final class Cors extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Cors.Builder
CORS configuration builder.
|
static class |
Cors.Origin
Class for a CORS origin.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getMaxAgeSeconds()
Returns the max time in seconds in which a client can issue requests before sending a new
preflight request.
|
List<HttpMethod> |
getMethods()
Returns the HTTP methods supported by this CORS configuration.
|
List<Cors.Origin> |
getOrigins()
Returns the origins in this CORS configuration.
|
List<String> |
getResponseHeaders()
Returns the response headers supported by this CORS configuration.
|
int |
hashCode() |
static Cors.Builder |
newBuilder()
Returns a CORS configuration builder.
|
Cors.Builder |
toBuilder()
Returns a builder for this CORS configuration.
|
public Integer getMaxAgeSeconds()
public List<HttpMethod> getMethods()
public List<Cors.Origin> getOrigins()
public List<String> getResponseHeaders()
public Cors.Builder toBuilder()
public static Cors.Builder newBuilder()
Copyright © 2019 Google LLC. All rights reserved.