@ThreadSafe public final class MultiPartSchemeURI extends StandardURI
MultiPartSchemeURI
supports multiple components for the scheme.URI.Factory
mAuthority, mHashCode, mPath, mQuery, mScheme, mSchemeSpecificPart
Modifier | Constructor and Description |
---|---|
|
MultiPartSchemeURI(String schemePrefix,
String scheme,
Authority authority,
String path,
String query) |
protected |
MultiPartSchemeURI(URI baseUri,
String fullScheme,
String newPath)
Constructs a new URI from a base URI, but with a new path component.
|
Modifier and Type | Method and Description |
---|---|
URI |
createNewPath(String newPath,
boolean checkNormalization) |
boolean |
equals(Object o) |
String |
getScheme() |
int |
hashCode() |
compareTo, getAuthority, getPath, getQuery, getSchemeSpecificPart, isAbsolute
public MultiPartSchemeURI(String schemePrefix, String scheme, Authority authority, String path, String query)
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 URIpublic URI createNewPath(String newPath, boolean checkNormalization)
createNewPath
in interface URI
createNewPath
in class StandardURI
newPath
- the new path componentcheckNormalization
- if true, will check if the path requires normalizationpublic String getScheme()
getScheme
in interface URI
getScheme
in class StandardURI
URI
, null if there is no schemepublic boolean equals(Object o)
equals
in class StandardURI
public int hashCode()
hashCode
in class StandardURI
Copyright © 2023. All Rights Reserved.