@Test public void testDecodeQueryString() { String qs = "one%2Btwo"; String expResult = "one+two"; String result = URLUtils.decodeQueryString(qs); assertEquals(expResult, result); }
static public String decodeQueryString(String qs) { try { return URLDecoder.decode(qs.replace("+", "%2B"), "UTF-8").replace("%2B", "+"); } catch (UnsupportedEncodingException ex) { return null; } }
URLUtils { static public String decodeQueryString(String qs) { try { return URLDecoder.decode(qs.replace("+", "%2B"), "UTF-8").replace("%2B", "+"); } catch (UnsupportedEncodingException ex) { return null; } } }
URLUtils { static public String decodeQueryString(String qs) { try { return URLDecoder.decode(qs.replace("+", "%2B"), "UTF-8").replace("%2B", "+"); } catch (UnsupportedEncodingException ex) { return null; } }  }
URLUtils { static public String decodeQueryString(String qs) { try { return URLDecoder.decode(qs.replace("+", "%2B"), "UTF-8").replace("%2B", "+"); } catch (UnsupportedEncodingException ex) { return null; } }  static String removeTrailingSlashes(String s); static String decodeQueryString(String qs); static String getParentPath(String path); static String getPrefixUrl(HttpServerExchange exchange); static String getQueryStringRemovingParams(HttpServerExchange exchange, String... paramsToRemove); static String getIdString(BsonValue id); }
URLUtils { static public String decodeQueryString(String qs) { try { return URLDecoder.decode(qs.replace("+", "%2B"), "UTF-8").replace("%2B", "+"); } catch (UnsupportedEncodingException ex) { return null; } }  static String removeTrailingSlashes(String s); static String decodeQueryString(String qs); static String getParentPath(String path); static String getPrefixUrl(HttpServerExchange exchange); static String getQueryStringRemovingParams(HttpServerExchange exchange, String... paramsToRemove); static String getIdString(BsonValue id);  }