@API(status=STABLE,
since="1.0")
public interface UriSource
extends TestSource
TestSource that can be represented as a URI.UriSelector| Modifier and Type | Method and Description |
|---|---|
static UriSource |
from(java.net.URI uri)
Create a new
UriSource using the supplied URI. |
java.net.URI |
getUri()
Get the
URI that represents this source. |
java.net.URI getUri()
URI that represents this source.URI; never nullstatic UriSource from(java.net.URI uri)
UriSource using the supplied URI.
This implementation first attempts to resolve the supplied URI
to a path-based UriSource in the local filesystem. If that fails
for any reason, an instance of the default UriSource
implementation storing the supplied URI as-is will be
returned.
uri - the URI to use as the source; never nullUriSource for the supplied URIFileSource,
DirectorySource