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
A TestSource that can be represented as a URI.
Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static UriSource
    from(URI uri)
    Create a new UriSource using the supplied URI.
    Get the URI that represents this source.
  • Method Details

    • getUri

      URI getUri()
      Get the URI that represents this source.
      Returns:
      the source URI; never null
    • from

      static UriSource from(URI uri)
      Create a new 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.

      Parameters:
      uri - the URI to use as the source; never null
      Returns:
      an appropriate UriSource for the supplied URI
      Since:
      1.3
      See Also: