Class AntPathMatcher.AntPathStringMatcher

  • java.lang.Object
    • org.springframework.util.AntPathMatcher.AntPathStringMatcher
  • Enclosing class:

    protected static class AntPathMatcher.AntPathStringMatcher
    extends java.lang.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}.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean matchStrings(java.lang.String str, java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables)
      Main entry point.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AntPathStringMatcher

        public AntPathStringMatcher(java.lang.String pattern)
      • AntPathStringMatcher

        public AntPathStringMatcher(java.lang.String pattern,
                                    boolean caseSensitive)
    • Method Detail

      • matchStrings

        public boolean matchStrings(java.lang.String str,
                                    java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables)
        Main entry point.
        true if the string matches against the pattern, or false otherwise.