类 UrlUtil


  • public class UrlUtil
    extends Object

    Url 工具类

    作者:
    yangkai.shen
    • 构造器详细资料

      • UrlUtil

        public UrlUtil()
    • 方法详细资料

      • urlEncode

        public String urlEncode​(String value)
        编码
        参数:
        value - str
        返回:
        encode str
      • urlDecode

        public String urlDecode​(String url)
                         throws cn.hutool.core.exceptions.UtilException
        解码URL
        将%开头的16进制表示的内容解码。
        参数:
        url - URL
        返回:
        解码后的URL
        抛出:
        cn.hutool.core.exceptions.UtilException - UnsupportedEncodingException