public class UriTemplate extends Object
| Constructor and Description |
|---|
UriTemplate(String path) |
| Modifier and Type | Method and Description |
|---|---|
String |
bindByName(Map<String,String> params) |
String |
bindByName(String... params) |
String |
bindByNameNonStrict(Map<String,String> params)
Like
bindByName(java.util.Map) but this method silently ignores any unnecessary parameters that are passed in. |
String |
bindByPosition(String... params) |
List<String> |
getParameterNames() |
protected String |
getWildcardParameterName(int pathIndex)
Returns the wildcard parameter name for the given path index if its a wildcard otherwise return null if it is not a wildcard
|
protected String |
joinPath(int index,
String[] paths)
Returns the joined path with "/" from the given index until the end of the array of paths
|
MappingResult |
matches(String[] requestUriPaths,
HttpProxyRule proxyRule) |
protected String |
replace(String text,
String key,
String value) |
public UriTemplate(String path)
public MappingResult matches(String[] requestUriPaths, HttpProxyRule proxyRule)
public String bindByNameNonStrict(Map<String,String> params)
bindByName(java.util.Map) but this method silently ignores any unnecessary parameters that are passed in.protected String getWildcardParameterName(int pathIndex)
protected String joinPath(int index, String[] paths)
Copyright © 2011–2015 Red Hat. All rights reserved.