Package com.google.cloud.storage
Class Cors.Builder
java.lang.Object
com.google.cloud.storage.Cors.Builder
- Enclosing class:
- Cors
CORS configuration builder.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a CORS configuration.setMaxAgeSeconds
(Integer maxAgeSeconds) Sets the max time in seconds in which a client can issue requests before sending a new preflight request.setMethods
(Iterable<HttpMethod> methods) Sets the HTTP methods supported by this CORS configuration.setOrigins
(Iterable<Cors.Origin> origins) Sets the origins for this CORS configuration.setResponseHeaders
(Iterable<String> headers) Sets the response headers supported by this CORS configuration.
-
Method Details
-
setMaxAgeSeconds
Sets the max time in seconds in which a client can issue requests before sending a new preflight request. -
setMethods
Sets the HTTP methods supported by this CORS configuration. -
setOrigins
Sets the origins for this CORS configuration. -
setResponseHeaders
Sets the response headers supported by this CORS configuration. -
build
Creates a CORS configuration.
-