类 AntPathMatcher.AntPathStringMatcher

java.lang.Object
cn.taketoday.core.AntPathMatcher.AntPathStringMatcher
封闭类:
AntPathMatcher

protected static class AntPathMatcher.AntPathStringMatcher extends Object
Tests whether or not a string matches against a pattern via a Pattern.

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}.

  • 字段详细资料

    • GLOB_PATTERN

      private static final Pattern GLOB_PATTERN
    • DEFAULT_VARIABLE_PATTERN

      private static final String DEFAULT_VARIABLE_PATTERN
      另请参阅:
    • pattern

      private final Pattern pattern
    • variableNames

      private final ArrayList<String> variableNames
    • rawPattern

      private final String rawPattern
    • caseSensitive

      private final boolean caseSensitive
    • exactMatch

      private final boolean exactMatch
  • 构造器详细资料

    • AntPathStringMatcher

      public AntPathStringMatcher(String pattern)
    • AntPathStringMatcher

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

    • quote

      private String quote(String s, int start, int end)
    • extractVariables

      @Nullable public String[] extractVariables(String str)
    • throwIllegalArgumentException

      protected void throwIllegalArgumentException()
    • matchStrings

      public boolean matchStrings(String str, @Nullable Map<String,String> uriTemplateVariables)
      Main entry point.
      返回:
      true if the string matches against the pattern, or false otherwise.