@Test public void parse_string() { String s = "foo=bar"; java.util.Map.Entry<String, String> pair = URLEncodedUtils.parse(s, StandardCharsets.UTF_8).iterator().next(); assertEquals("value of param definition " + s, new SimpleImmutableEntry<>("foo", "bar"), pair); }
public static List<Entry<String, String>> parse(final URI uri, final Charset charset) { requireNonNull(uri, "URI"); final String query = uri.getRawQuery(); if (query != null && !query.isEmpty()) { return parse(query, charset); } return Collections.emptyList(); }
URLEncodedUtils { public static List<Entry<String, String>> parse(final URI uri, final Charset charset) { requireNonNull(uri, "URI"); final String query = uri.getRawQuery(); if (query != null && !query.isEmpty()) { return parse(query, charset); } return Collections.emptyList(); } }
URLEncodedUtils { public static List<Entry<String, String>> parse(final URI uri, final Charset charset) { requireNonNull(uri, "URI"); final String query = uri.getRawQuery(); if (query != null && !query.isEmpty()) { return parse(query, charset); } return Collections.emptyList(); } private  URLEncodedUtils(); }
URLEncodedUtils { public static List<Entry<String, String>> parse(final URI uri, final Charset charset) { requireNonNull(uri, "URI"); final String query = uri.getRawQuery(); if (query != null && !query.isEmpty()) { return parse(query, charset); } return Collections.emptyList(); } private  URLEncodedUtils(); static List<Entry<String, String>> parse(final URI uri, final Charset charset); static List<Map.Entry<String, String>> parse(final String s, final Charset charset); static List<Map.Entry<String, String>> parse(
            final CharArrayBuffer buf, final Charset charset, final char... separators); static List<NameValuePair> parseToNameValuePairs(String query, Charset charset); static String encodeFormFields(final String content, final Charset charset); static String format(
            final Iterable<? extends NameValuePair> parameters,
            final Charset charset); static String format(
            final Iterable<? extends NameValuePair> parameters,
            final char parameterSeparator,
            final Charset charset); }
URLEncodedUtils { public static List<Entry<String, String>> parse(final URI uri, final Charset charset) { requireNonNull(uri, "URI"); final String query = uri.getRawQuery(); if (query != null && !query.isEmpty()) { return parse(query, charset); } return Collections.emptyList(); } private  URLEncodedUtils(); static List<Entry<String, String>> parse(final URI uri, final Charset charset); static List<Map.Entry<String, String>> parse(final String s, final Charset charset); static List<Map.Entry<String, String>> parse(
            final CharArrayBuffer buf, final Charset charset, final char... separators); static List<NameValuePair> parseToNameValuePairs(String query, Charset charset); static String encodeFormFields(final String content, final Charset charset); static String format(
            final Iterable<? extends NameValuePair> parameters,
            final Charset charset); static String format(
            final Iterable<? extends NameValuePair> parameters,
            final char parameterSeparator,
            final Charset charset);  }