public final class URLEncoder extends Object
| Modifier and Type | Field and Description | 
|---|---|
private static String | 
__NAME_VALUE_SEPARATOR  | 
private static String | 
__PARAMETER_SEPARATOR  | 
| Modifier | Constructor and Description | 
|---|---|
private  | 
URLEncoder()  | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
encodeParameter(String value)
Encode a parameter's value using UTF-8 encoding 
 | 
static String | 
encodePath(String path)
Encode an URL path 
 | 
static String | 
encodeURI(String path,
         Map<String,String> parameters)
Encode an URL path 
 | 
private static final String __NAME_VALUE_SEPARATOR
private static final String __PARAMETER_SEPARATOR
private URLEncoder()
public static String encodeParameter(String value)
value - the value or the name of the request's parameter to encodepublic static String encodePath(String path)
path - the path to encode (before question-mark character)