@Test public void rfc3986_queryEncodingOptional() { assertMaybeEncoded('!', PercentEncoder.encodeQueryComponent("!")); assertMaybeEncoded('$', PercentEncoder.encodeQueryComponent("$")); assertMaybeEncoded('&', PercentEncoder.encodeQueryComponent("&")); assertMaybeEncoded('\'', PercentEncoder.encodeQueryComponent("'")); assertMaybeEncoded('(', PercentEncoder.encodeQueryComponent("(")); assertMaybeEncoded(')', PercentEncoder.encodeQueryComponent(")")); assertMaybeEncoded('*', PercentEncoder.encodeQueryComponent("*")); assertMaybeEncoded('+', PercentEncoder.encodeQueryComponent("+")); assertMaybeEncoded(',', PercentEncoder.encodeQueryComponent(",")); assertMaybeEncoded('/', PercentEncoder.encodeQueryComponent("/")); assertMaybeEncoded(':', PercentEncoder.encodeQueryComponent(":")); assertMaybeEncoded(';', PercentEncoder.encodeQueryComponent(";")); assertMaybeEncoded('=', PercentEncoder.encodeQueryComponent("=")); assertMaybeEncoded('?', PercentEncoder.encodeQueryComponent("?")); assertMaybeEncoded('@', PercentEncoder.encodeQueryComponent("@")); }
public static String encodeQueryComponent(String component) { return PercentEncoder.encode(component, safeQuery, true, false); }
PercentEncoder { public static String encodeQueryComponent(String component) { return PercentEncoder.encode(component, safeQuery, true, false); } }
PercentEncoder { public static String encodeQueryComponent(String component) { return PercentEncoder.encode(component, safeQuery, true, false); }  }
PercentEncoder { public static String encodeQueryComponent(String component) { return PercentEncoder.encode(component, safeQuery, true, false); }  static String encodePathSegment(String segment); static String encodeQueryComponent(String component); static String encodeQueryComponentNoPlusForSpace(String component); static String encodeFragment(String fragment); static String reEncodePath(String path); static String reEncodeQuery(String query); static String reEncodeFragment(String fragment); }
PercentEncoder { public static String encodeQueryComponent(String component) { return PercentEncoder.encode(component, safeQuery, true, false); }  static String encodePathSegment(String segment); static String encodeQueryComponent(String component); static String encodeQueryComponentNoPlusForSpace(String component); static String encodeFragment(String fragment); static String reEncodePath(String path); static String reEncodeQuery(String query); static String reEncodeFragment(String fragment);  }