Class Cors.Origin (2.22.5)

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

of(String value)

public static Cors.Origin of(String value)

Creates an Origin object for the provided value.

Parameter
NameDescription
valueString
Returns
TypeDescription
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
NameDescription
schemeString
hostString
portint
Returns
TypeDescription
Cors.Origin

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getValue()

public String getValue()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides