Interface UriSource
-
- All Superinterfaces:
Serializable
,TestSource
- All Known Subinterfaces:
FileSystemSource
- All Known Implementing Classes:
DirectorySource
,FileSource
@API(status=STABLE, since="1.0") public interface UriSource extends TestSource
ATestSource
that can be represented as aURI
.- Since:
- 1.0
- See Also:
UriSelector
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static UriSource
from(URI uri)
Create a newUriSource
using the suppliedURI
.URI
getUri()
Get theURI
that represents this source.
-
-
-
Method Detail
-
from
static UriSource from(URI uri)
Create a newUriSource
using the suppliedURI
.This implementation first attempts to resolve the supplied
URI
to a path-basedUriSource
in the local filesystem. If that fails for any reason, an instance of the defaultUriSource
implementation storing the suppliedURI
as-is will be returned.- Parameters:
uri
- the URI to use as the source; nevernull
- Returns:
- an appropriate
UriSource
for the suppliedURI
- Since:
- 1.3
- See Also:
FileSource
,DirectorySource
-
-