jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Encode.java
public static String encodePathSaveEncodings(String segment) {
        String result = encodeFromArray(segment, pathEncoding, false);
        result = encodeNonCodes(result);
        return result;
    }
public static String encodePathSaveEncodings(String segment) {
        String result = encodeFromArray(segment, pathEncoding, false);
        result = encodeNonCodes(result);
        return result;
    }
public static String encodePathSaveEncodings ( String segment ) { String result = encodeFromArray ( segment , pathEncoding , false ) ; result = encodeNonCodes ( result ) ; return result ; }
Keep any valid encodings from string i.e. keep "%2D" but don't keep "%p"

@param segment
@return
Keep any valid encodings from string i . e . keep %2D but don t keep %p