@Test public void testUrlDecodeArray() { assertThat(EncodingUtil.urlDecode("simple", "simple2"), arrayContaining("simple", "simple2")); assertThat(EncodingUtil.urlDecode("sim%2Fple", "simple2%2f"), arrayContaining("sim/ple", "simple2/")); }
public static String urlDecode(final String string) { try { return URLDecoder.decode(string, UTF_8.name()); } catch (UnsupportedEncodingException e) { throw new AssertionError("UTF-8 encoding is not supported on this system.", e); } }
EncodingUtil { public static String urlDecode(final String string) { try { return URLDecoder.decode(string, UTF_8.name()); } catch (UnsupportedEncodingException e) { throw new AssertionError("UTF-8 encoding is not supported on this system.", e); } } }
EncodingUtil { public static String urlDecode(final String string) { try { return URLDecoder.decode(string, UTF_8.name()); } catch (UnsupportedEncodingException e) { throw new AssertionError("UTF-8 encoding is not supported on this system.", e); } } private  EncodingUtil(); }
EncodingUtil { public static String urlDecode(final String string) { try { return URLDecoder.decode(string, UTF_8.name()); } catch (UnsupportedEncodingException e) { throw new AssertionError("UTF-8 encoding is not supported on this system.", e); } } private  EncodingUtil(); static String urlEncode(final String string); static String urlDecode(final String string); static String[] urlDecode(final String... strings); }
EncodingUtil { public static String urlDecode(final String string) { try { return URLDecoder.decode(string, UTF_8.name()); } catch (UnsupportedEncodingException e) { throw new AssertionError("UTF-8 encoding is not supported on this system.", e); } } private  EncodingUtil(); static String urlEncode(final String string); static String urlDecode(final String string); static String[] urlDecode(final String... strings);  }