| Modifier and Type | Method and Description |
|---|---|
static int |
getPort(URI uri,
int defaultPort)
Returns the port of a URI.
|
static boolean |
isSecure(URI uri)
Returns whether the URI has a secure schema.
|
public static int getPort(URI uri, int defaultPort)
-1) then returns the defaultPort.uri - the URI to extract the port fromdefaultPort - the default to use if the port is unsetdefaultPort if unsetNullPointerException - if uri is nullpublic static boolean isSecure(URI uri)
wss or
https.uri - the URI to examineNullPointerException - if uri is null