http and https literals are
supported. Cannot be null.
'[' and ']').
If the host is a DNS hostname, then it must be passed as a lower case String.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public static Origin | |
| pack-priv static Origin | Returns: Creates and returns an Origin parsed from the ASCII serialized form as defined in section 6.2 of RFC-6454The value to be parsed value)Returns Creates and returns an Origin parsed from the ASCII serialized form as defined in section 6.2 of RFC-6454. |
| public final int | |
| public String | |
| private static boolean | |
| pack-priv boolean | Returns: true if the Origin's scheme is considered secure, else returns falseReturns true if the Origin's scheme is considered secure, else returns false. |
| private static boolean | |
| public int | |
| public String | |
| pack-priv static String | |
| public String | toString()
Implements abstract java. Returns a string representation of the record. |
| host | back to summary |
|---|---|
| private final String host Record Component accessed by host(). The host of the origin, cannot be null. If the host is an IPv6 address,
then it must not be enclosed in square brackets ( | |
| port | back to summary |
|---|---|
| private final int port Record Component accessed by port(). The port of the origin. Must be greater than 0. | |
| scheme | back to summary |
|---|---|
| private final String scheme Record Component accessed by scheme(). The scheme of the origin (for example: https). Unlike the application layer
protocol (which can be a finer grained protocol like h2, h3 etc...),
this is actually a scheme. Only | |
| Origin | back to summary |
|---|---|
| public Origin(String scheme, String host, int port) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| from | back to summary |
|---|---|
| public static Origin from(final URI uri) throws IllegalArgumentException Returns Creates and returns an Origin from an URI.
| |
| fromASCIISerializedForm | back to summary |
|---|---|
| pack-priv static Origin fromASCIISerializedForm(final String value) throws IllegalArgumentException Returns Creates and returns an Origin parsed from the ASCII serialized form as defined in section 6.2 of RFC-6454. | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| host | back to summary |
|---|---|
| public String host() Record Component getter of host.
| |
| isDNSHostName | back to summary |
|---|---|
| private static boolean isDNSHostName(final String host) | |
| isSecure | back to summary |
|---|---|
| pack-priv boolean isSecure() Returns true if the Origin's scheme is considered secure, else returns false.
| |
| isValidScheme | back to summary |
|---|---|
| private static boolean isValidScheme(final String scheme) | |
| port | back to summary |
|---|---|
| public int port() Record Component getter of port.
| |
| scheme | back to summary |
|---|---|
| public String scheme() Record Component getter of scheme.
| |
| toAuthority | back to summary |
|---|---|
| pack-priv static String toAuthority(final String host, final int port) | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |