|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.ResourcePath
public class ResourcePath
This class represents resource paths used inside the embedded registry. i.e. paths in the form /c1/c2/r1;version:2;view:1
Constructor Summary | |
---|---|
ResourcePath(java.lang.String rawPath)
Create a resource path with a row path. |
Method Summary | |
---|---|
void |
appendPath(java.lang.String pathToAppend)
Append a component to the current path. |
java.lang.String |
getCompletePath()
Return the complete path. |
java.lang.String |
getParameterValue(java.lang.String key)
Get the parameter value. |
java.lang.String |
getPath()
Return the path component, without any parameters. |
java.lang.String |
getPathWithVersion()
Return the path with version, if there is no version, just return the path. |
boolean |
isCurrentVersion()
Check whether the path is not a version-ed path. |
boolean |
parameterExists(java.lang.String key)
Check whether a parameter with the provided key exist. |
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the parameter. |
java.lang.String |
toString()
The path to string, same as getCompletePath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourcePath(java.lang.String rawPath)
rawPath
- the raw path.Method Detail |
---|
public java.lang.String getCompletePath()
public java.lang.String getPath()
public boolean parameterExists(java.lang.String key)
key
- the parameter key.
public java.lang.String getParameterValue(java.lang.String key)
key
- the parameter key.
public void setParameter(java.lang.String key, java.lang.String value)
key
- the parameter key.value
- the parameter value.public void appendPath(java.lang.String pathToAppend)
pathToAppend
- the path to append.public boolean isCurrentVersion()
public java.lang.String getPathWithVersion()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |