A "path patch": AntPatchStringMatcher -> AntPathStringMatcher ;)
This commit is contained in:
parent
ed98bf0668
commit
3caecbd1ef
|
|
@ -212,7 +212,7 @@ public class AntPathMatcher implements PathMatcher {
|
|||
* @return <code>true</code> if the string matches against the pattern, or <code>false</code> otherwise.
|
||||
*/
|
||||
private boolean matchStrings(String pattern, String str, Map<String, String> uriTemplateVariables) {
|
||||
AntPatchStringMatcher matcher = new AntPatchStringMatcher(pattern, str, uriTemplateVariables);
|
||||
AntPathStringMatcher matcher = new AntPathStringMatcher(pattern, str, uriTemplateVariables);
|
||||
return matcher.matchStrings();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ import java.util.regex.Pattern;
|
|||
* @author Arjen Poutsma
|
||||
* @since 3.0
|
||||
*/
|
||||
class AntPatchStringMatcher {
|
||||
class AntPathStringMatcher {
|
||||
|
||||
private static final Pattern GLOB_PATTERN = Pattern.compile("\\?|\\*|\\{([^/]+?)\\}");
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ class AntPatchStringMatcher {
|
|||
private final Map<String, String> uriTemplateVariables;
|
||||
|
||||
/** Construct a new instance of the <code>AntPatchStringMatcher</code>. */
|
||||
AntPatchStringMatcher(String pattern, String str, Map<String, String> uriTemplateVariables) {
|
||||
AntPathStringMatcher(String pattern, String str, Map<String, String> uriTemplateVariables) {
|
||||
this.str = str;
|
||||
this.uriTemplateVariables = uriTemplateVariables;
|
||||
this.pattern = createPattern(pattern);
|
||||
Loading…
Reference in New Issue