Package webwork.util

Class QueryString

java.lang.Object
webwork.util.QueryString

public class QueryString extends Object
Query string parsing logic. Intended to replace use of the Servlet API HttpUtils class which was removed. A more idiomatic way of doing this would be to use ServletRequest.getParameterMap(), however this will also read form data which will consume the request body -- at time of writing the impact of this is difficult to judge so we conservatively stick with parsing the query string ourselves.
  • Method Details

    • parse

      public static Map<String,String[]> parse(String queryString)
      Parses a query string into a map of keys to array of values.
      Parameters:
      queryString - The query string.
      Returns:
      The parsed result, as an unmodifiable map. If queryString is null, an empty map.