@Test public void testParseQueryFromURI() throws Exception { URI original = new URI("http: Map<String, String> result = PropertyUtil.parseQuery(original); assertEquals(2, result.size()); assertTrue(result.containsKey("option")); assertTrue(result.containsKey("another")); assertEquals("true", result.get("option")); assertEquals("false", result.get("another")); }
public static Map<String, String> parseQuery(URI uri) throws Exception { if (uri == null) { return Collections.emptyMap(); } return parseQuery(uri.getRawQuery()); }
PropertyUtil { public static Map<String, String> parseQuery(URI uri) throws Exception { if (uri == null) { return Collections.emptyMap(); } return parseQuery(uri.getRawQuery()); } }
PropertyUtil { public static Map<String, String> parseQuery(URI uri) throws Exception { if (uri == null) { return Collections.emptyMap(); } return parseQuery(uri.getRawQuery()); }  }
PropertyUtil { public static Map<String, String> parseQuery(URI uri) throws Exception { if (uri == null) { return Collections.emptyMap(); } return parseQuery(uri.getRawQuery()); }  static URI replaceQuery(URI originalURI, Map<String, String> properties); static URI replaceQuery(URI uri, String query); static URI eraseQuery(URI uri); static String createQueryString(Map<String, ? extends Object> options); static Map<String, String> parseQuery(URI uri); static Map<String, String> parseQuery(String queryString); static Map<String, String> filterProperties(Map<String, String> properties, String optionPrefix); static Map<String, String> setProperties(Object target, Map<String, String> properties); static Map<String, Object> setProperties(Object target, Properties properties); static Map<String, String> getProperties(Object object); static Object getProperty(Object object, String name); static boolean setProperty(Object target, String name, Object value); static String stripPrefix(String value, String prefix); static String stripUpto(String value, char c); static String stripBefore(String value, char c); }
PropertyUtil { public static Map<String, String> parseQuery(URI uri) throws Exception { if (uri == null) { return Collections.emptyMap(); } return parseQuery(uri.getRawQuery()); }  static URI replaceQuery(URI originalURI, Map<String, String> properties); static URI replaceQuery(URI uri, String query); static URI eraseQuery(URI uri); static String createQueryString(Map<String, ? extends Object> options); static Map<String, String> parseQuery(URI uri); static Map<String, String> parseQuery(String queryString); static Map<String, String> filterProperties(Map<String, String> properties, String optionPrefix); static Map<String, String> setProperties(Object target, Map<String, String> properties); static Map<String, Object> setProperties(Object target, Properties properties); static Map<String, String> getProperties(Object object); static Object getProperty(Object object, String name); static boolean setProperty(Object target, String name, Object value); static String stripPrefix(String value, String prefix); static String stripUpto(String value, char c); static String stripBefore(String value, char c);  }