|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.util.UriUtils
public class UriUtils
URI manipulation utilities and helpers class.
| Method Summary | |
|---|---|
static String |
appendParam(String url,
String name,
String value)
|
static String |
newUrl(String baseUrl,
Collection<Pair<String,String>> params)
Creates a new URL string from the specified base URL and parameters. |
static String |
newUrl(String baseUrl,
Map<String,String> paramMap)
Creates a new URL string from the specified base URL and parameters. |
static String |
newWwwUrlEncodedUrl(String baseUrl,
Collection<Pair<String,String>> params)
Creates a new URL string from the specified base URL and parameters encoded in non-form encoding, www-urlencoded. |
static String |
newWwwUrlEncodedUrl(String baseUrl,
Map<String,String> paramMap)
Creates a new URL string from the specified base URL and parameters encoded in non-form encoding, www-urlencoded. |
static Pair<String,String> |
pair(String name,
boolean value)
Returns a pair of strings created from a string name and a boolean value. |
static Pair<String,String> |
pair(String name,
long value)
Returns a pair of strings created from a string name and a long value. |
static Pair<String,String> |
pair(String s1,
String s2)
Returns a pair of strings created from two strings. |
static Pair<String,String> |
pair(String name,
URI value)
Returns a pair of strings created from a string name and a URI value. |
static String |
stripHost(String uri)
Strips the host from a URI string. |
static String |
urlFormDecode(String s)
Returns a string that has been decoded. |
static String |
urlFormEncode(String s)
Returns a string that has been encoded for use in a URL. |
static String |
urlNonFormEncode(String s)
Returns a string that has been encoded for use in a URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String urlNonFormEncode(String s)
s - The string to encode.
public static String urlFormEncode(String s)
s - The string to encode.
public static String urlFormDecode(String s)
s - The string to decode.
public static String appendParam(String url,
String name,
String value)
public static String newUrl(String baseUrl,
Collection<Pair<String,String>> params)
baseUrl - The base URL excluding parameters.params - The parameters.
public static String newUrl(String baseUrl,
Map<String,String> paramMap)
baseUrl - The base URL excluding parameters.paramMap - The parameters.
public static String newWwwUrlEncodedUrl(String baseUrl,
Collection<Pair<String,String>> params)
baseUrl - The base URL excluding parameters.params - The parameters.
public static String newWwwUrlEncodedUrl(String baseUrl,
Map<String,String> paramMap)
baseUrl - The base URL excluding parameters.paramMap - The parameters.
public static Pair<String,String> pair(String s1,
String s2)
s1 - The first string.s2 - The second string.
public static Pair<String,String> pair(String name,
long value)
name - The string name.value - The long value.
public static Pair<String,String> pair(String name,
boolean value)
name - The string name.value - The boolean value.
public static Pair<String,String> pair(String name,
URI value)
name - The string name.value - The URI value.
public static String stripHost(String uri)
uri - The URI to transform.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||