AntPathMatcher.getStringMatcher

Build or retrieve an {@link AntPathStringMatcher} for the given pattern. <p>The default implementation checks this AntPathMatcher's internal cache (see {@link #setCachePatterns}), creating a new AntPathStringMatcher instance if no cached copy is found. <p>When encountering too many patterns to cache at runtime (the threshold is 65536), it turns the default cache off, assuming that arbitrary permutations of patterns are coming in, with little chance for encountering a recurring pattern. <p>This method may be overridden to implement a custom cache strategy. @param pattern the pattern to match against (never {@code null}) @return a corresponding AntPathStringMatcher (never {@code null}) @see #setCachePatterns

class AntPathMatcher
protected
getStringMatcher
(
string pattern
)

Meta