public class UrlEncoderUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
charset |
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
UrlEncoderUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
encodeQuery(String... parameters)
Encode query.
|
static String |
encodeQueryValue(String value)
Encode query value.
|
static String |
encodeQueryValues(Map<String,String> parameters)
Encode query values.
|
static String |
getCharset()
Gets the charset.
|
static String |
removeLastChar(String string)
Removes the last char.
|
static void |
setCharset(String charset)
Sets the charset.
|
public static String charset
public static org.apache.log4j.Logger logger
public static String encodeQuery(String... parameters)
parameters
- the parameterspublic static String encodeQueryValue(String value)
value
- the valuepublic static String encodeQueryValues(Map<String,String> parameters)
parameters
- the parameterspublic static String removeLastChar(String string)
string
- the stringpublic static String getCharset()
public static void setCharset(String charset)
charset
- the charset to setCopyright © 2016. All Rights Reserved.