@Immutable public final class SectorID extends Identifier
Related specifications:
DEFAULT_BYTE_LENGTH| Constructor and Description |
|---|
SectorID(String host)
Creates a new sector identifier for the specified host.
|
SectorID(URI sectorURI)
Creates a new sector identifier for the specified URI.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
ensureHostComponent(URI sectorURI)
Ensures the specified URI contains a host component.
|
static void |
ensureHTTPScheme(URI sectorURI)
Ensures the specified URI has a
https scheme. |
compareTo, equals, getValue, hashCode, toJSONString, toStringpublic SectorID(String host)
host - The host. Must not be empty or null.public static void ensureHTTPScheme(URI sectorURI)
https scheme.sectorURI - The URI. Must have a https scheme and not
be null.public static String ensureHostComponent(URI sectorURI)
sectorURI - The URI. Must contain a host component and not be
null.Copyright © 2016 Connect2id Ltd.. All rights reserved.