public static final class Bucket.Cors
extends com.google.api.client.json.GenericJson
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Cors() |
| Modifier and Type | Method and Description |
|---|---|
Bucket.Cors |
clone() |
java.lang.Integer |
getMaxAgeSeconds()
The value, in seconds, to return in the Access-Control-Max-Age header used in preflight
responses.
|
java.util.List<java.lang.String> |
getMethod()
The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc)
Note: "*" is permitted in the list of methods, and means "any method".
|
java.util.List<java.lang.String> |
getOrigin()
The list of Origins eligible to receive CORS response headers.
|
java.util.List<java.lang.String> |
getResponseHeader()
The list of HTTP headers other than the simple response headers to give permission for the
user-agent to share across domains.
|
Bucket.Cors |
set(java.lang.String fieldName,
java.lang.Object value) |
Bucket.Cors |
setMaxAgeSeconds(java.lang.Integer maxAgeSeconds)
The value, in seconds, to return in the Access-Control-Max-Age header used in preflight
responses.
|
Bucket.Cors |
setMethod(java.util.List<java.lang.String> method)
The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc)
Note: "*" is permitted in the list of methods, and means "any method".
|
Bucket.Cors |
setOrigin(java.util.List<java.lang.String> origin)
The list of Origins eligible to receive CORS response headers.
|
Bucket.Cors |
setResponseHeader(java.util.List<java.lang.String> responseHeader)
The list of HTTP headers other than the simple response headers to give permission for the
user-agent to share across domains.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Integer getMaxAgeSeconds()
null for nonepublic Bucket.Cors setMaxAgeSeconds(java.lang.Integer maxAgeSeconds)
maxAgeSeconds - maxAgeSeconds or null for nonepublic java.util.List<java.lang.String> getMethod()
null for nonepublic Bucket.Cors setMethod(java.util.List<java.lang.String> method)
method - method or null for nonepublic java.util.List<java.lang.String> getOrigin()
null for nonepublic Bucket.Cors setOrigin(java.util.List<java.lang.String> origin)
origin - origin or null for nonepublic java.util.List<java.lang.String> getResponseHeader()
null for nonepublic Bucket.Cors setResponseHeader(java.util.List<java.lang.String> responseHeader)
responseHeader - responseHeader or null for nonepublic Bucket.Cors set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Bucket.Cors clone()
clone in class com.google.api.client.json.GenericJson