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. ThisURI
supports more than just strictURI
. 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
URI.Factory
Factory forURI
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URI
createNewPath(java.lang.String newPath, boolean checkNormalization)
Authority
getAuthority()
java.lang.String
getPath()
java.lang.String
getQuery()
java.lang.String
getScheme()
java.lang.String
getSchemeSpecificPart()
boolean
isAbsolute()
Tells whether or not theURI
is absolute.
-
-
-
Method Detail
-
createNewPath
URI createNewPath(java.lang.String newPath, boolean checkNormalization)
- Parameters:
newPath
- the new path componentcheckNormalization
- 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
-
-