Static helper methods for URL paths to items in folders.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.lang.String |
createItemPath(java.lang.String name)Get the path to the create REST method for an item name. |
|
static java.lang.String |
createViewPath(java.lang.String name)Get the path to the create REST method for a view name. |
|
static java.lang.String |
itemConfigPath(java.lang.String name)Generate the path to the config.xml for an item. |
|
static java.lang.String |
itemNameToPath(java.lang.String name)Generate the path to the item by injecting 'job/' between the parent folder names. |
|
static java.lang.String |
removeFoldersFromName(java.lang.String name)Remove all folders from the name. |
|
static java.lang.String |
restApiPathForName(java.lang.String name)Get the base path of the REST api for the provided name. |
|
static java.lang.String |
restMethodPathForName(java.lang.String name, java.lang.String restMethod)Get the path to the provided REST method for the name. |
|
static java.lang.String |
viewConfigPath(java.lang.String name)Generate the path to the config.xml for a view. |
|
static java.lang.String |
viewNameToPath(java.lang.String name)Generate the path to the view by injecting 'job/' between the parent folder names and 'view/' before the view name. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Get the path to the create REST method for an item name.
Get the path to the create REST method for a view name.
Generate the path to the config.xml for an item.
Generate the path to the item by injecting 'job/' between the parent folder names.
Remove all folders from the name. This removes everything before and including the last '/' in the name.
Get the base path of the REST api for the provided name. For non-folder items this is the empty string, for folder items this is the path of the folder.
Get the path to the provided REST method for the name. For non-folder items this is only the name of the REST method, for folder items this is the path to the folder plus the method name.
Generate the path to the config.xml for a view.
Generate the path to the view by injecting 'job/' between the parent folder names and 'view/' before the view name.