org.xwiki.portlet.util
Class QueryStringParser
java.lang.Object
org.xwiki.portlet.util.QueryStringParser
public class QueryStringParser
- extends Object
Parses URL query strings.
- Version:
- $Id: f35bb42b1f866ab1f2aa1bfb071ac49c97d3abee $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryStringParser
public QueryStringParser()
parse
public Map<String,List<String>> parse(String queryString)
- Parses the given query string without decoding the parameter names and values.
- Parameters:
queryString - the URL query string to be parsed
- Returns:
- the parameter map
parse
public Map<String,List<String>> parse(String queryString,
String encoding)
throws UnsupportedEncodingException
- Parses the given query string and decodes the parameter names and values using the specified encoding.
- Parameters:
queryString - the URL query string to be parsedencoding - the character encoding to be used for decoding the parameter names and values
- Returns:
- the parameter map
- Throws:
UnsupportedEncodingException - if the specified encoding is not supported
Copyright © 2004-2013 XWiki. All Rights Reserved.