Cloud Storage API v1beta2 (revision 1)



com.google.api.services.storage.model
Class Bucket.Cors

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.storage.model.Bucket.Cors
All Implemented Interfaces:
Cloneable, Map<String,Object>
Enclosing class:
Bucket

public static final class Bucket.Cors
extends GenericJson

Model definition for BucketCors.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Bucket.Cors()
           
 
Method Summary
 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, e.g.
 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 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, e.g.
 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.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bucket.Cors

public Bucket.Cors()
Method Detail

getMaxAgeSeconds

public Integer getMaxAgeSeconds()
The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses. The value returned may be null.


setMaxAgeSeconds

public Bucket.Cors setMaxAgeSeconds(Integer maxAgeSeconds)
The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses. The value set may be null.


getMethod

public List<String> getMethod()
The list of HTTP methods on which to include CORS response headers, e.g. GET, OPTIONS, POST. Note, "*" is permitted in the list of methods, and means "any method". The value returned may be null.


setMethod

public Bucket.Cors setMethod(List<String> method)
The list of HTTP methods on which to include CORS response headers, e.g. GET, OPTIONS, POST. Note, "*" is permitted in the list of methods, and means "any method". The value set may be null.


getOrigin

public List<String> getOrigin()
The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin". The value returned may be null.


setOrigin

public Bucket.Cors setOrigin(List<String> origin)
The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin". The value set may be null.


getResponseHeader

public 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. The value returned may be null.


setResponseHeader

public 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. The value set may be null.