public class UriBasedVehicleInterfaceMixin
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.net.URI |
createUri(java.lang.String uriString)
Attempt to construct an instance of URI from the given String.
|
static boolean |
sameResource(java.net.URI uri,
java.lang.String otherResource)
Determine if two URIs refer to the same resource.
|
static boolean |
validateResource(java.lang.String uriString)
Convert the parameter to a URI and validate the correctness of its host
and port.
|
static boolean |
validateResource(java.net.URI uri)
Validate the correctness of the host and port in a given URI.
|
public static boolean sameResource(java.net.URI uri, java.lang.String otherResource)
public static boolean validateResource(java.lang.String uriString)
public static boolean validateResource(java.net.URI uri)
public static java.net.URI createUri(java.lang.String uriString) throws DataSourceException
uriString
- the String representation of the possible URI.DataSourceException
- if the parameter is not a valid URI.