Modifier and Type | Field and Description |
---|---|
private String |
path |
private String |
schemePrefix |
private String |
uri |
private static Pattern |
URI_PATTERN
|
SCHEME_PREFIX_CLASSPATH, SCHEME_PREFIX_FILE, SCHEME_PREFIX_FTP, SCHEME_PREFIX_HTTP, SCHEME_PREFIX_HTTPS
Constructor and Description |
---|
PathUriImpl(String uri)
The constructor.
|
PathUriImpl(String schemePrefix,
String path)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getPath()
This method gets the path of this
PathUri . |
String |
getSchemePrefix()
This method gets the scheme-prefix of a qualified
PathUri . |
String |
getUri()
This method gets this
PathUri as string. |
String |
toString() |
private static final Pattern URI_PATTERN
private final String schemePrefix
getSchemePrefix()
public PathUriImpl(String schemePrefix, String path)
schemePrefix
- is the scheme-prefix
.path
- is the path
.public String getSchemePrefix()
PathUri
. 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 PathUri
null
if this PathUri
is unqualified.Copyright © 2001–2014 mmm-Team. All rights reserved.