public class Origin
extends java.lang.Object
Users of this class should consider null values opaque origins.
| Constructor and Description |
|---|
Origin(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String domain)
Create an origin with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
effectiveDomain()
Computes the effective domain
of this origin.
|
java.util.Optional<java.lang.String> |
getDomain()
Get the domain of this origin.
|
java.lang.String |
getHost()
Get the host of this origin.
|
java.util.OptionalInt |
getPort()
Get the port of this origin.
|
java.lang.String |
getScheme()
Get the scheme of this origin.
|
java.lang.String |
serialized()
Computes the serialization
of this origin.
|
java.lang.String |
toString() |
public Origin(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String domain)
scheme - The schemehost - The host.port - The port (or -1 if unspecified).domain - The domain (or null if unspecified).public java.lang.String getScheme()
public java.lang.String getHost()
public java.util.OptionalInt getPort()
public java.util.Optional<java.lang.String> getDomain()
public java.lang.String effectiveDomain()
public java.lang.String serialized()
public java.lang.String toString()
toString in class java.lang.Object