Package alluxio.uri
Class MultiPartSchemeURI
- java.lang.Object
-
- alluxio.uri.StandardURI
-
- alluxio.uri.MultiPartSchemeURI
-
@ThreadSafe public final class MultiPartSchemeURI extends StandardURI
MultiPartSchemeURI
supports multiple components for the scheme.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface alluxio.uri.URI
URI.Factory
-
-
Field Summary
-
Fields inherited from class alluxio.uri.StandardURI
mAuthority, mHashCode, mPath, mQuery, mScheme, mSchemeSpecificPart
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MultiPartSchemeURI(URI baseUri, java.lang.String fullScheme, java.lang.String newPath)
Constructs a new URI from a base URI, but with a new path component.MultiPartSchemeURI(java.lang.String schemePrefix, java.lang.String scheme, Authority authority, java.lang.String path, java.lang.String query)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
createNewPath(java.lang.String newPath, boolean checkNormalization)
boolean
equals(java.lang.Object o)
java.lang.String
getScheme()
int
hashCode()
-
Methods inherited from class alluxio.uri.StandardURI
compareTo, getAuthority, getPath, getQuery, getSchemeSpecificPart, isAbsolute
-
-
-
-
Constructor Detail
-
MultiPartSchemeURI
public MultiPartSchemeURI(java.lang.String schemePrefix, java.lang.String scheme, Authority authority, java.lang.String path, java.lang.String query)
- Parameters:
schemePrefix
- the prefix of the scheme string of the URIscheme
- the scheme string of the URIauthority
- the Authority of the URIpath
- the path component of the URIquery
- the query component of the URI
-
MultiPartSchemeURI
protected MultiPartSchemeURI(URI baseUri, java.lang.String fullScheme, java.lang.String newPath)
Constructs a new URI from a base URI, but with a new path component.- Parameters:
baseUri
- the base urifullScheme
- the full schemenewPath
- the new path component
-
-
Method Detail
-
createNewPath
public URI createNewPath(java.lang.String newPath, boolean checkNormalization)
- Specified by:
createNewPath
in interfaceURI
- Overrides:
createNewPath
in classStandardURI
- 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
-
getScheme
public java.lang.String getScheme()
- Specified by:
getScheme
in interfaceURI
- Overrides:
getScheme
in classStandardURI
- Returns:
- the scheme of the
URI
, null if there is no scheme
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classStandardURI
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classStandardURI
-
-