public class PatternMatcher<S> extends Object
|Constructor and Description|
Initialize a new
|Modifier and Type||Method and Description|
This method takes a String key and a map from Strings to values of any type.
Lifted from AntPathMatcher in Spring Core.
pattern- pattern to match against. Must not be
str- string which must be matched against the pattern. Must not be
trueif the string matches against the pattern, or
This method takes a String key and a map from Strings to values of any type. During processing, the method will identify the most specific key in the map that matches the line. Once the correct is identified, its value is returned. Note that if the map contains the wildcard string "*" as a key, then it will serve as the "default" case, matching every line that does not match anything else.
If no matching prefix is found, a
IllegalStateException will be
Null keys are not allowed in the map.
line- An input string
Copyright © 2018 SpringSource. All rights reserved.