|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.rest.URIPattern
public class URIPattern
An utility class for manipulating "parametrized" strings. A parametrized is a string constructed by substituting placeholders in the pattern string where pattern string is any string containing placeholders in the form of "{placeholderName}".
| Constructor Summary | |
|---|---|
URIPattern(String patternString)
Creates a new instance of ParametrizedStringParser. |
|
| Method Summary | |
|---|---|
Set<String> |
getParamNames()
Returns a Set of names of parameters (placeholders)
participating in the underlying pattern string. |
String |
getString()
Returns the underlying pattern string. |
int |
getTotalTokensLength()
Get total tokens length. |
boolean |
matches(String string)
Checks if the given string matches the underlying pattern. |
boolean |
matches(URIPattern another)
check is two URIPattern matches. |
Map<String,String> |
parse(String string)
Parses the given string against the underlying pattern and returns a Map of parameter names to values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URIPattern(String patternString)
patternString - pattern.| Method Detail |
|---|
public Set<String> getParamNames()
Set of names of parameters (placeholders)
participating in the underlying pattern string.
Set of string parameters.public Map<String,String> parse(String string)
Map of parameter names to values.
string - string to parse.
Map of parameter names to values.public boolean matches(String string)
string - string to test.
public boolean matches(URIPattern another)
another - the another URIPattern.
public String getString()
public int getTotalTokensLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||