public static final class Cors.Origin extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
static Cors.Origin |
any()
Returns an
Origin object for all possible origins. |
boolean |
equals(Object obj) |
String |
getValue() |
int |
hashCode() |
static Cors.Origin |
of(String value)
Creates an
Origin object for the provided value. |
static Cors.Origin |
of(String scheme,
String host,
int port)
Returns an
Origin object for the given scheme, host and port. |
String |
toString() |
public static Cors.Origin any()
Origin
object for all possible origins.public static Cors.Origin of(String scheme, String host, int port)
Origin
object for the given scheme, host and port.public static Cors.Origin of(String value)
Origin
object for the provided value.public String getValue()
Copyright © 2019 Google LLC. All rights reserved.