Package org.springframework.cloud.bus
Class DefaultBusPathMatcher
- java.lang.Object
-
- org.springframework.cloud.bus.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 Summary
Constructors Constructor Description DefaultBusPathMatcher(org.springframework.util.PathMatcher delagateMatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
combine(String pattern1, String pattern2)
String
extractPathWithinPattern(String pattern, String path)
Map<String,String>
extractUriTemplateVariables(String pattern, String path)
Comparator<String>
getPatternComparator(String path)
boolean
isPattern(String path)
boolean
match(String pattern, String path)
protected boolean
matchMultiProfile(String pattern, String idToMatch)
boolean
matchStart(String pattern, String path)
-
-
-
Method Detail
-
isPattern
public boolean isPattern(String path)
- Specified by:
isPattern
in interfaceorg.springframework.util.PathMatcher
-
match
public boolean match(String pattern, String path)
- Specified by:
match
in interfaceorg.springframework.util.PathMatcher
-
matchStart
public boolean matchStart(String pattern, String path)
- Specified by:
matchStart
in interfaceorg.springframework.util.PathMatcher
-
extractPathWithinPattern
public String extractPathWithinPattern(String pattern, String path)
- Specified by:
extractPathWithinPattern
in interfaceorg.springframework.util.PathMatcher
-
extractUriTemplateVariables
public Map<String,String> extractUriTemplateVariables(String pattern, String path)
- Specified by:
extractUriTemplateVariables
in interfaceorg.springframework.util.PathMatcher
-
getPatternComparator
public Comparator<String> getPatternComparator(String path)
- Specified by:
getPatternComparator
in interfaceorg.springframework.util.PathMatcher
-
-