public class RESTUrl
extends java.lang.Object
Constructor and Description |
---|
RESTUrl(java.lang.String urlPath) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
existsKey(java.lang.String key)
Decides if a key exists in the url components
|
Pair<java.lang.String,java.lang.String> |
getByIndex(int index)
Return the value of a url component by index
|
java.util.ArrayList<java.lang.String> |
getByKey(java.lang.String key)
Returns the first element from the url components that match the given
key.
|
public java.util.ArrayList<java.lang.String> getByKey(java.lang.String key)
key
- a string to search forpublic Pair<java.lang.String,java.lang.String> getByIndex(int index)
index
- the index of the component to retrievepublic java.lang.Boolean existsKey(java.lang.String key)
key
- a string to search forurlComponents
- the url components