public interface PathUri
Path
. A PathUri
can be
represented as string
but consists of two parts: a scheme-prefix
and a
path
. URI |
scheme-prefix |
path |
---|---|---|
file:///tmp/config.xml | file:// | /tmp/config.xml |
http://m-m-m.sourceforge.net/maven/index.html | http:// | m-m-m.sourceforge.net/maven/index.html |
classpath:net/sf/mmm/util/beans-core.xml | classpath: | net/sf/mmm/util/beans-core.xml |
/home/mmm/.profile | <null> | /home/mmm/.profile |
../foo/bar.ext | <null> | ../foo/bar.ext |
C:\WINDOWS\system32\drivers\etc\hosts | <null> | C:\WINDOWS\system32\drivers\etc\hosts |
Modifier and Type | Field and Description |
---|---|
static String |
SCHEME_PREFIX_CLASSPATH
|
static String |
SCHEME_PREFIX_FILE
|
static String |
SCHEME_PREFIX_FTP
The
scheme prefix for a Path on the network accessed via FTP. |
static String |
SCHEME_PREFIX_HTTP
The
scheme prefix for a Path on the web accessed via HTTP. |
static String |
SCHEME_PREFIX_HTTPS
The
scheme prefix for a Path on the web accessed via HTTPS. |
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() |
static final String SCHEME_PREFIX_FILE
static final String SCHEME_PREFIX_CLASSPATH
static final String SCHEME_PREFIX_HTTP
scheme prefix
for a Path
on the web accessed via HTTP.static final String SCHEME_PREFIX_HTTPS
scheme prefix
for a Path
on the web accessed via HTTPS.static final String SCHEME_PREFIX_FTP
scheme prefix
for a Path
on the network accessed via FTP.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
.null
if this PathUri
is unqualified.String getPath()
Copyright © 2001–2016 mmm-Team. All rights reserved.