@Test public void testQuoteURIPathComponent() { assertEquals("test%20yes%3Ano%20%2Fcaf%C3%A9.bin", q("test yes:no /caf\u00e9.bin", true)); assertEquals("http%3A%2F%2Ffoo%2Fbar", q("http: assertEquals("a/b/c", q("a/b/c", false)); assertEquals("%5Bfoo%5D%20bar%3F", q("[foo] bar?", true)); assertEquals("http%3A%2F%2Ffoo%2Fbar%2F%40adapter", q("http: assertEquals("http%3A%2F%2Ffoo%2Fbar%2F@adapter", q("http: assertEquals("http%3A }
public static String quoteURIPathComponent(String s, boolean quoteSlash) { return quoteURIPathComponent(s, quoteSlash, true); }
URIUtils { public static String quoteURIPathComponent(String s, boolean quoteSlash) { return quoteURIPathComponent(s, quoteSlash, true); } }
URIUtils { public static String quoteURIPathComponent(String s, boolean quoteSlash) { return quoteURIPathComponent(s, quoteSlash, true); } private  URIUtils(); }
URIUtils { public static String quoteURIPathComponent(String s, boolean quoteSlash) { return quoteURIPathComponent(s, quoteSlash, true); } private  URIUtils(); static String getURIQuery(Map<String, String> parameters); static String getURIPath(String uri); static Map<String, String> getRequestParameters(String uriQuery); static String addParametersToURIQuery(String uriString, Map<String, String> parameters); static String quoteURIPathComponent(String s, boolean quoteSlash); static String quoteURIPathComponent(String s, boolean quoteSlash, boolean quoteAt); static String quoteURIPathToken(String s); static String unquoteURIPathComponent(String s); }
URIUtils { public static String quoteURIPathComponent(String s, boolean quoteSlash) { return quoteURIPathComponent(s, quoteSlash, true); } private  URIUtils(); static String getURIQuery(Map<String, String> parameters); static String getURIPath(String uri); static Map<String, String> getRequestParameters(String uriQuery); static String addParametersToURIQuery(String uriString, Map<String, String> parameters); static String quoteURIPathComponent(String s, boolean quoteSlash); static String quoteURIPathComponent(String s, boolean quoteSlash, boolean quoteAt); static String quoteURIPathToken(String s); static String unquoteURIPathComponent(String s);  }