public final class URIUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
addParametersToURIQuery(String uriString,
Map<String,String> parameters) |
static Map<String,String> |
getRequestParameters(String uriQuery) |
static String |
getURIPath(String uri)
Returns an URI path given the uri.
|
static String |
getURIQuery(Map<String,String> parameters)
Creates an URI query given the request parameters.
|
static String |
quoteURIPathComponent(String s,
boolean quoteSlash) |
static String |
quoteURIPathComponent(String s,
boolean quoteSlash,
boolean quoteAt)
Quotes a URI path component, with ability to quote "/" and "@" characters or not depending on the URI path
|
static String |
unquoteURIPathComponent(String s) |
public static String getURIQuery(Map<String,String> parameters)
public static Map<String,String> getRequestParameters(String uriQuery)
public static String addParametersToURIQuery(String uriString, Map<String,String> parameters)
public static String quoteURIPathComponent(String s, boolean quoteSlash, boolean quoteAt)
the
- uri path to quotequoteSlash
- true if "/" character should be quotedquoteAt
- true if "@" character should be quotedCopyright © 2015 Nuxeo SA. All rights reserved.