Package alluxio.uri

Interface URI

  • All Superinterfaces:
    java.lang.Comparable<URI>, java.io.Serializable
    All Known Implementing Classes:
    MultiPartSchemeURI, StandardURI

    public interface URI
    extends java.lang.Comparable<URI>, java.io.Serializable
    This interface represents a URI. This URI supports more than just strict URI. Some examples: * Windows paths * C:\ * D:\path\to\file * E:\path\to\skip\..\file * URI with multiple scheme components * scheme://host:123/path * scheme:part2//host:123/path * scheme:part2://host:123/path * scheme:part2:part3//host:123/path * scheme:part2:part3://host:123/path Currently, does not support fragment in the URI.
    • Method Detail

      • createNewPath

        URI createNewPath​(java.lang.String newPath,
                          boolean checkNormalization)
        Parameters:
        newPath - the new path component
        checkNormalization - if true, will check if the path requires normalization
        Returns:
        a new URI based off of this URI, but with a new path component
      • getAuthority

        Authority getAuthority()
        Returns:
        the authority of the URI, null if it does not have one
      • getPath

        java.lang.String getPath()
        Returns:
        the path of the URI
      • getQuery

        java.lang.String getQuery()
        Returns:
        the query component of the URI
      • getScheme

        java.lang.String getScheme()
        Returns:
        the scheme of the URI, null if there is no scheme
      • getSchemeSpecificPart

        java.lang.String getSchemeSpecificPart()
        Returns:
        the scheme specific part of the URI, null if there is no scheme
      • isAbsolute

        boolean isAbsolute()
        Tells whether or not the URI is absolute.

        An URI is absolute if, and only if, it has a scheme component.

        Returns:
        true if, and only if, this URI is absolute