de.intarsys.tools.url
Class URLEncodingTools
java.lang.Object
de.intarsys.tools.url.URLEncodingTools
public class URLEncodingTools
- extends Object
Tool for dealing with URL encoding.
CHARSET_DEFAULT
public static final String CHARSET_DEFAULT
- See Also:
- Constant Field Values
URLEncodingTools
public URLEncodingTools()
decodeEntity
public static Map<String,String> decodeEntity(String content,
String encoding)
throws IOException
- Decode a complete http entity content and return it as a
Map.
- Parameters:
content - encoding -
- Returns:
- A map of the key / value pairs in the entity.
- Throws:
IOException
encodeEntity
public static String encodeEntity(Map<String,String> parameters,
String encoding)
throws UnsupportedEncodingException
- Encode a
Map of key / value pairs to a http entity.
- Parameters:
parameters - encoding -
- Returns:
- The encoded entity
- Throws:
UnsupportedEncodingException
Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.