|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.resource.base.ResourceUriImpl
public class ResourceUriImpl
This is the implementation of the ResourceUri interface.
| Field Summary | |
|---|---|
private String |
path
|
private static Pattern |
SCHEME_PATTERN
The Pattern for a ResourceUri as string. |
private String |
schemePrefix
|
private String |
uri
|
| Constructor Summary | |
|---|---|
ResourceUriImpl(String uri)
The constructor. |
|
ResourceUriImpl(String schemePrefix,
String path)
The constructor. |
|
| 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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final Pattern SCHEME_PATTERN
Pattern for a ResourceUri as string.
private final String uri
getUri()private final String schemePrefix
getSchemePrefix()private final String path
getPath()| Constructor Detail |
|---|
public ResourceUriImpl(String uri)
uri - is the URI.
public ResourceUriImpl(String schemePrefix,
String path)
schemePrefix - is the scheme-prefix.path - is the path.| Method Detail |
|---|
public String getUri()
ResourceUri as string.
getUri in interface ResourceUripublic 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.
getSchemePrefix in interface ResourceUrinull if this ResourceUri
is unqualified.public String getPath()
ResourceUri. This is the part of
the URI after the scheme-prefix.
getPath in interface ResourceUripublic String toString()
toString in interface ResourceUritoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||