类 AntPathMatcher.AntPathStringMatcher

  • 封闭类:
    AntPathMatcher

    protected static class AntPathMatcher.AntPathStringMatcher
    extends Object
    通过Pattern测试字符串是否与模式匹配。

    该模式可能包含特殊字符:"意味着零个或多个字符;”?'表示一个且只有一个字符;“{”和“}”表示URI模板模式。 例如users{user}

    • 构造器详细资料

      • AntPathStringMatcher

        public AntPathStringMatcher​(String pattern,
                                    boolean caseSensitive)
    • 方法详细资料

      • matchStrings

        public boolean matchStrings​(String str,
                                    Map<String,​String> uriTemplateVariables)
        主要入口。
        参数:
        str - Str
        uriTemplateVariables - uri template vars
        返回:
        true if the string matches against the pattern, or false otherwise.