类 UrlUtils


  • public class UrlUtils
    extends Object
    • 构造器详细资料

      • UrlUtils

        public UrlUtils()
    • 方法详细资料

      • getEmptyUrl

        public static URL getEmptyUrl​(String service,
                                      String category)
      • isMatchCategory

        public static boolean isMatchCategory​(String category,
                                              String categories)
      • isMatch

        public static boolean isMatch​(URL consumerUrl,
                                      URL providerUrl)
      • isMatchGlobPattern

        public static boolean isMatchGlobPattern​(String pattern,
                                                 String value,
                                                 URL param)
      • isMatchGlobPattern

        public static boolean isMatchGlobPattern​(String pattern,
                                                 String value)
      • isServiceKeyMatch

        public static boolean isServiceKeyMatch​(URL pattern,
                                                URL value)
      • isConfigurator

        public static boolean isConfigurator​(URL url)
      • isRoute

        public static boolean isRoute​(URL url)
      • isProvider

        public static boolean isProvider​(URL url)
      • isRegistry

        public static boolean isRegistry​(URL url)
      • isServiceDiscoveryRegistryType

        public static boolean isServiceDiscoveryRegistryType​(URL url)
        The specified URL is service discovery registry type or not
        参数:
        url - the URL connects to the registry
        返回:
        If it is, return true, or false
        从以下版本开始:
        2.7.5
      • isServiceDiscoveryRegistryType

        public static boolean isServiceDiscoveryRegistryType​(Map<String,​String> parameters)
        The specified parameters of URL is service discovery registry type or not
        参数:
        parameters - the parameters of URL that connects to the registry
        返回:
        If it is, return true, or false
        从以下版本开始:
        2.7.5
      • parseServiceKey

        public static String[] parseServiceKey​(String serviceKey)
        参数:
        serviceKey - , {group}/{interfaceName}:{version}
        返回:
        [group, interfaceName, version]