public class ResourcePath extends Object
| Constructor and Description |
|---|
ResourcePath(String rawPath)
Create a resource path with a row path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendPath(String pathToAppend)
Append a component to the current path.
|
String |
getCompletePath()
Return the complete path.
|
String |
getParameterValue(String key)
Get the parameter value.
|
String |
getPath()
Return the path component, without any parameters.
|
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(String key)
Check whether a parameter with the provided key exist.
|
void |
setParameter(String key,
String value)
Set the parameter.
|
String |
toString()
The path to string, same as getCompletePath
|
public ResourcePath(String rawPath)
rawPath - the raw path.public String getCompletePath()
public String getPath()
public boolean parameterExists(String key)
key - the parameter key.public String getParameterValue(String key)
key - the parameter key.public void setParameter(String key, String value)
key - the parameter key.value - the parameter value.public void appendPath(String pathToAppend)
pathToAppend - the path to append.public boolean isCurrentVersion()
public String getPathWithVersion()
Copyright © 2016 WSO2 Inc. All Rights Reserved.