org.xwiki.portlet.util
Class QueryStringParser

java.lang.Object
  extended by org.xwiki.portlet.util.QueryStringParser

public class QueryStringParser
extends Object

Parses URL query strings.

Version:
$Id: f35bb42b1f866ab1f2aa1bfb071ac49c97d3abee $

Constructor Summary
QueryStringParser()
           
 
Method Summary
 Map<String,List<String>> parse(String queryString)
          Parses the given query string without decoding the parameter names and values.
 Map<String,List<String>> parse(String queryString, String encoding)
          Parses the given query string and decodes the parameter names and values using the specified encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryStringParser

public QueryStringParser()
Method Detail

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 parsed
encoding - 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.