Class Cors (2.30.1)

public final class Cors implements Serializable

Cross-Origin Resource Sharing (CORS) configuration for a bucket. See Also: Cross-Origin Resource Sharing (CORS)

Inheritance

Object > Cors

Implements

Serializable

Static Methods

newBuilder()

public static Cors.Builder newBuilder()

Returns a CORS configuration builder.

Returns
Type Description
Cors.Builder

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getMaxAgeSeconds()

public Integer getMaxAgeSeconds()

Returns the max time in seconds in which a client can issue requests before sending a new preflight request.

Returns
Type Description
Integer

getMethods()

public List<HttpMethod> getMethods()

Returns the HTTP methods supported by this CORS configuration.

Returns
Type Description
List<HttpMethod>

getOrigins()

public List<Cors.Origin> getOrigins()

Returns the origins in this CORS configuration.

Returns
Type Description
List<Origin>

getResponseHeaders()

public List<String> getResponseHeaders()

Returns the response headers supported by this CORS configuration.

Returns
Type Description
List<String>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public Cors.Builder toBuilder()

Returns a builder for this CORS configuration.

Returns
Type Description
Cors.Builder