类 URLStrParser


  • public final class URLStrParser
    extends Object
    • 方法详细资料

      • parseDecodedStr

        public static URL parseDecodedStr​(String decodedURLStr)
        参数:
        decodedURLStr - : after URL.decode(java.lang.String) string decodedURLStr format: protocol://username:password@host:port/path?k1=v1&k2=v2 [protocol://][username:password@][host:port]/[path][?k1=v1&k2=v2]
      • parseRawURLToArrays

        public static String[] parseRawURLToArrays​(String rawURLStr,
                                                   int pathEndIdx)
      • parseEncodedStr

        public static URL parseEncodedStr​(String encodedURLStr)
        参数:
        encodedURLStr - : after URL.encode(String) string encodedURLStr after decode format: protocol://username:password@host:port/path?k1=v1&k2=v2 [protocol://][username:password@][host:port]/[path][?k1=v1&k2=v2]