@Test public void rfc3986_pathEncodingOptional() { assertMaybeEncoded('!', PercentEncoder.encodePathSegment("!")); assertMaybeEncoded('$', PercentEncoder.encodePathSegment("$")); assertMaybeEncoded('&', PercentEncoder.encodePathSegment("&")); assertMaybeEncoded('\'', PercentEncoder.encodePathSegment("'")); assertMaybeEncoded('(', PercentEncoder.encodePathSegment("(")); assertMaybeEncoded(')', PercentEncoder.encodePathSegment(")")); assertMaybeEncoded('*', PercentEncoder.encodePathSegment("*")); assertMaybeEncoded('+', PercentEncoder.encodePathSegment("+")); assertMaybeEncoded(',', PercentEncoder.encodePathSegment(",")); assertMaybeEncoded(':', PercentEncoder.encodePathSegment(":")); assertMaybeEncoded(';', PercentEncoder.encodePathSegment(";")); assertMaybeEncoded('=', PercentEncoder.encodePathSegment("=")); assertMaybeEncoded('@', PercentEncoder.encodePathSegment("@")); }
public static String encodePathSegment(String segment) { return PercentEncoder.encode(segment, safePath, false, false); }
PercentEncoder { public static String encodePathSegment(String segment) { return PercentEncoder.encode(segment, safePath, false, false); } }
PercentEncoder { public static String encodePathSegment(String segment) { return PercentEncoder.encode(segment, safePath, false, false); }  }
PercentEncoder { public static String encodePathSegment(String segment) { return PercentEncoder.encode(segment, safePath, false, 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 encodePathSegment(String segment) { return PercentEncoder.encode(segment, safePath, false, 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);  }