Class Cors (2.22.3)

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
TypeDescription
Cors.Builder

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
Integer

getMethods()

public List<HttpMethod> getMethods()

Returns the HTTP methods supported by this CORS configuration.

Returns
TypeDescription
List<HttpMethod>

getOrigins()

public List<Cors.Origin> getOrigins()

Returns the origins in this CORS configuration.

Returns
TypeDescription
List<Origin>

getResponseHeaders()

public List<String> getResponseHeaders()

Returns the response headers supported by this CORS configuration.

Returns
TypeDescription
List<String>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public Cors.Builder toBuilder()

Returns a builder for this CORS configuration.

Returns
TypeDescription
Cors.Builder