public class ResourceUriImpl extends Object implements ResourceUri
ResourceUri interface.| Modifier and Type | Field and Description |
|---|---|
private String |
path |
private static Pattern |
SCHEME_PATTERN
|
private String |
schemePrefix |
private String |
uri |
SCHEME_PREFIX_CLASSPATH, SCHEME_PREFIX_FILE, SCHEME_PREFIX_FTP, SCHEME_PREFIX_HTTP, SCHEME_PREFIX_HTTPS| Constructor and Description |
|---|
ResourceUriImpl(String uri)
The constructor.
|
ResourceUriImpl(String schemePrefix,
String path)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPath()
This method gets the path of this
ResourceUri. |
String |
getSchemePrefix()
This method gets the scheme-prefix of a qualified
ResourceUri. |
String |
getUri()
This method gets this
ResourceUri as string. |
String |
toString() |
private static final Pattern SCHEME_PATTERN
private final String uri
private final String schemePrefix
private final String path
public ResourceUriImpl(String schemePrefix, String path)
schemePrefix - is the scheme-prefix.path - is the path.public String getUri()
ResourceUriResourceUri as string.getUri in interface ResourceUripublic String getSchemePrefix()
ResourceUriResourceUri. The scheme-prefix has the following
form: [a-zA-Z][a-zA-Z0-9\\.\\-+]+:(//)?. The part before the colon (:) is called the
scheme. getSchemePrefix in interface ResourceUrinull if this ResourceUri is unqualified.public String getPath()
ResourceUrigetPath in interface ResourceUripublic String toString()
toString in interface ResourceUritoString in class ObjectCopyright © 2001–2016 mmm-Team. All rights reserved.