|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceUri
This interface represents an URI pointing to the location of a
DataResource. A ResourceUri can
be represented as string but consists of two parts: a
scheme-prefix and a path.
Here are some examples:
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 |
| Method Summary | |
|---|---|
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()
|
| Method Detail |
|---|
String getUri()
ResourceUri as string.
String getSchemePrefix()
ResourceUri. 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 ResourceUri
is unqualified.String getPath()
ResourceUri. This is the part of
the URI after the scheme-prefix.
String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||