Package com.google.cloud.storage
Class Cors
java.lang.Object
com.google.cloud.storage.Cors
- All Implemented Interfaces:
Serializable
Cross-Origin Resource Sharing (CORS) configuration for a bucket.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
CORS configuration builder.static final class
Class for a CORS origin. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the max time in seconds in which a client can issue requests before sending a new preflight request.Returns the HTTP methods supported by this CORS configuration.Returns the origins in this CORS configuration.Returns the response headers supported by this CORS configuration.int
hashCode()
static Cors.Builder
Returns a CORS configuration builder.Returns a builder for this CORS configuration.
-
Method Details
-
getMaxAgeSeconds
Returns the max time in seconds in which a client can issue requests before sending a new preflight request. -
getMethods
Returns the HTTP methods supported by this CORS configuration. -
getOrigins
Returns the origins in this CORS configuration. -
getResponseHeaders
Returns the response headers supported by this CORS configuration. -
toBuilder
Returns a builder for this CORS configuration. -
hashCode
public int hashCode() -
equals
-
newBuilder
Returns a CORS configuration builder.
-