Class DefaultBusPathMatcher

  • All Implemented Interfaces:
    org.springframework.util.PathMatcher

    public class DefaultBusPathMatcher
    extends Object
    implements org.springframework.util.PathMatcher
    BusPathMatcher that matches application context ids with multiple, comma-separated, profiles. Original https://gist.github.com/kelapure/61d3f948acf478cc95225ff1d7d239c4 See https://github.com/spring-cloud/spring-cloud-config/issues/678
    Author:
    Rohit Kelapure, Spencer Gibb
    • Constructor Detail

      • DefaultBusPathMatcher

        public DefaultBusPathMatcher​(org.springframework.util.PathMatcher delagateMatcher)
    • Method Detail

      • matchMultiProfile

        protected boolean matchMultiProfile​(String pattern,
                                            String idToMatch)
      • isPattern

        public boolean isPattern​(String path)
        Specified by:
        isPattern in interface org.springframework.util.PathMatcher
      • match

        public boolean match​(String pattern,
                             String path)
        Specified by:
        match in interface org.springframework.util.PathMatcher
      • matchStart

        public boolean matchStart​(String pattern,
                                  String path)
        Specified by:
        matchStart in interface org.springframework.util.PathMatcher
      • extractPathWithinPattern

        public String extractPathWithinPattern​(String pattern,
                                               String path)
        Specified by:
        extractPathWithinPattern in interface org.springframework.util.PathMatcher
      • extractUriTemplateVariables

        public Map<String,​String> extractUriTemplateVariables​(String pattern,
                                                                    String path)
        Specified by:
        extractUriTemplateVariables in interface org.springframework.util.PathMatcher
      • getPatternComparator

        public Comparator<String> getPatternComparator​(String path)
        Specified by:
        getPatternComparator in interface org.springframework.util.PathMatcher
      • combine

        public String combine​(String pattern1,
                              String pattern2)
        Specified by:
        combine in interface org.springframework.util.PathMatcher