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 |
|---|---|
static Cors.Builder |
builder()
Returns a CORS configuration builder.
|
boolean |
equals(Object obj) |
int |
hashCode() |
Integer |
maxAgeSeconds()
Returns the max time in seconds in which a client can issue requests before sending a new
preflight request.
|
List<HttpMethod> |
methods()
Returns the HTTP methods supported by this CORS configuration.
|
List<Cors.Origin> |
origins()
Returns the origins in this CORS configuration.
|
List<String> |
responseHeaders()
Returns the response headers supported by this CORS configuration.
|
Cors.Builder |
toBuilder()
Returns a builder for this CORS configuration.
|
public Integer maxAgeSeconds()
public List<HttpMethod> methods()
public List<Cors.Origin> origins()
public List<String> responseHeaders()
public Cors.Builder toBuilder()
public static Cors.Builder builder()
Copyright © 2016 Google. All rights reserved.