com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Cors() |
| Modifier and Type | Method and Description |
|---|---|
Bucket.Cors |
clone() |
Integer |
getMaxAgeSeconds()
The value, in seconds, to return in the Access-Control-Max-Age header used in preflight
responses.
|
List<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".
|
List<String> |
getOrigin()
The list of Origins eligible to receive CORS response headers.
|
List<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(String fieldName,
Object value) |
Bucket.Cors |
setMaxAgeSeconds(Integer maxAgeSeconds)
The value, in seconds, to return in the Access-Control-Max-Age header used in preflight
responses.
|
Bucket.Cors |
setMethod(List<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(List<String> origin)
The list of Origins eligible to receive CORS response headers.
|
Bucket.Cors |
setResponseHeader(List<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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Integer getMaxAgeSeconds()
null for nonepublic Bucket.Cors setMaxAgeSeconds(Integer maxAgeSeconds)
maxAgeSeconds - maxAgeSeconds or null for nonepublic List<String> getMethod()
null for nonepublic Bucket.Cors setMethod(List<String> method)
method - method or null for nonepublic List<String> getOrigin()
null for nonepublic Bucket.Cors setOrigin(List<String> origin)
origin - origin or null for nonepublic List<String> getResponseHeader()
null for nonepublic Bucket.Cors setResponseHeader(List<String> responseHeader)
responseHeader - responseHeader or null for nonepublic Bucket.Cors set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Bucket.Cors clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.