|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.netheos.pcsapi.utils.URIUtil
public class URIUtil
This class contains methods forked from org.apache.catalina.servlets.DefaultServlet.
| Method Summary | |
|---|---|
static String |
encodePath(String path)
Encode a path as required by the URL specification ( RFC 1738). |
static String |
getQueryParameter(URI uri,
String name)
Retrieves a query param in a URL according to a key. |
static Map<String,String> |
parseQueryParameters(String rawQuery)
Parse a query param string into a map of parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String encodePath(String path)
java.net.URLEncoder.encode() which encodes according to the
x-www-form-urlencoded MIME format.
path - the path to encode
public static String getQueryParameter(URI uri,
String name)
parseQueryString( uri.getRawQuery() ).
uri - name -
public static Map<String,String> parseQueryParameters(String rawQuery)
rawQuery - The query param string, as returned by URI.getRawQuery() (UTF-8 charset)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||