Package org.springframework.util
Class AntPathMatcher.AntPathStringMatcher
- java.lang.Object
- org.springframework.util.AntPathMatcher.AntPathStringMatcher
- Enclosing class:
- AntPathMatcher
protected static class AntPathMatcher.AntPathStringMatcher extends Object
Tests whether or not a string matches against a pattern via aPattern
.The pattern may contain special characters: '*' means zero or more characters; '?' means one and only one character; '{' and '}' indicate a URI template pattern. For example /users/{user}.
Constructor Summary
Constructors Constructor Description AntPathStringMatcher(String pattern)
AntPathStringMatcher(String pattern, boolean caseSensitive)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matchStrings(String str, Map<String,String> uriTemplateVariables)
Main entry point.
Constructor Detail
AntPathStringMatcher
public AntPathStringMatcher(String pattern)
AntPathStringMatcher
public AntPathStringMatcher(String pattern, boolean caseSensitive)
Method Detail
matchStrings
public boolean matchStrings(String str, Map<String,String> uriTemplateVariables)
Main entry point.- Returns:
true
if the string matches against the pattern, orfalse
otherwise.