类 URIUtils


  • public class URIUtils
    extends Object
    URI处理
    从以下版本开始:
    2018年4月24日
    作者:
    ylyue
    • 字段详细资料

      • DEFAULT_ENCODING

        public static final String DEFAULT_ENCODING
        The default encoding for URI encode/decode: UTF-8.
        另请参阅:
        常量字段值
    • 构造器详细资料

      • URIUtils

        public URIUtils()
    • 方法详细资料

      • isUriArraySuffixOrPrefixWildcard

        public static boolean isUriArraySuffixOrPrefixWildcard​(String[] array,
                                                               String uri)
        URI前缀或后缀通配符匹配(只能同时存在一种通配)
        参数:
        array - 包含通配符的URI的数组
        uri - 实际的URI
        返回:
        是否匹配
      • encode

        public static String encode​(String source)
        URI编码
        参数:
        source - 要编码的字符串
        返回:
        编码后的字符串
      • decode

        public static String decode​(String source)
        URI解码
        参数:
        source - 要解码的字符串
        返回:
        解码后的字符串