Class Cors

java.lang.Object
com.google.cloud.storage.Cors
All Implemented Interfaces:
Serializable

public final class Cors extends Object implements Serializable
Cross-Origin Resource Sharing (CORS) configuration for a bucket.
See Also:
  • Method Details

    • getMaxAgeSeconds

      public Integer getMaxAgeSeconds()
      Returns the max time in seconds in which a client can issue requests before sending a new preflight request.
    • getMethods

      public List<HttpMethod> getMethods()
      Returns the HTTP methods supported by this CORS configuration.
    • getOrigins

      public List<Cors.Origin> getOrigins()
      Returns the origins in this CORS configuration.
    • getResponseHeaders

      public List<String> getResponseHeaders()
      Returns the response headers supported by this CORS configuration.
    • toBuilder

      public Cors.Builder toBuilder()
      Returns a builder for this CORS configuration.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • newBuilder

      public static Cors.Builder newBuilder()
      Returns a CORS configuration builder.