public class URLEncodingTools extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CHARSET_DEFAULT |
| Constructor and Description |
|---|
URLEncodingTools() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
decodeEntity(String content,
String encoding)
Decode a complete http entity content and return it as a
Map. |
static String |
encodeEntity(Map<String,String> parameters,
String encoding)
Encode a
Map of key / value pairs to a http entity. |
public static final String CHARSET_DEFAULT
public static Map<String,String> decodeEntity(String content, String encoding) throws IOException
Map.content - encoding - IOExceptionpublic static String encodeEntity(Map<String,String> parameters, String encoding) throws UnsupportedEncodingException
Map of key / value pairs to a http entity.parameters - encoding - UnsupportedEncodingExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.