GenericData.Flags
AbstractMap.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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 GenericJson
public Bucket.Cors clone()
clone
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.