|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcom.wowza.util.URLUtils
public final class URLUtils
Class to deal with URLs
| Constructor Summary | |
|---|---|
URLUtils()
|
|
| Method Summary | |
|---|---|
static String |
appendParamsToUrl(String url,
String params)
Convenience call to add parameters to a url. |
static String |
decodeValue(String val)
Wrapper for URLDecoder.decode(val, "UTF-8"); |
static String |
encodeValue(String val)
Wrapper for URLEncoder.encode(val, "UTF-8"); |
static String |
getParamValue(java.util.Map params,
String key)
Helper funtion to get single value from multiple value parameter Map |
static java.util.Map |
parseQueryStr(String queryString,
boolean doDecode)
Parse query string part of url into Map of Lists (to support multiple values) of query parameters |
static String |
pathToFileURL(String basePath)
Convert a path to a url (file://[path]) |
static String |
urlToId(java.net.URL url)
Create a MD5 message digest hash of a url |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLUtils()
| Method Detail |
|---|
public static String appendParamsToUrl(String url,
String params)
url - input urlparams - parameters in the form param1=val1¶m2=val2
public static String decodeValue(String val)
val - value to decode
public static String encodeValue(String val)
val - value to encode
public static String getParamValue(java.util.Map params,
String key)
params - params Mapkey - key string
public static java.util.Map parseQueryStr(String queryString,
boolean doDecode)
queryString - query stringdoDecode - true to use URLDecoder.decode() to decode parameters
public static String pathToFileURL(String basePath)
basePath - path
public static String urlToId(java.net.URL url)
url - url to hash
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||