Class Cors.Origin (2.10.0)

public static final class Cors.Origin implements Serializable

Class for a CORS origin.

Inheritance

Object > Cors.Origin

Implements

Serializable

Static Methods

any()

public static Cors.Origin any()

Returns an Origin object for all possible origins.

Returns
Type Description
Cors.Origin

of(String value)

public static Cors.Origin of(String value)

Creates an Origin object for the provided value.

Parameter
Name Description
value String
Returns
Type Description
Cors.Origin

of(String scheme, String host, int port)

public static Cors.Origin of(String scheme, String host, int port)

Returns an Origin object for the given scheme, host and port.

Parameters
Name Description
scheme String
host String
port int
Returns
Type Description
Cors.Origin

Methods

equals(Object obj)

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

getValue()

public String getValue()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides