org.springframework.util
Interface PathMatcher

All Known Implementing Classes:
AntPathMatcher

public interface PathMatcher

Strategy interface for String-based path matching. Used by PathMatchingResourcePatternResolver, AbstractUrlHandlerMapping, PropertiesMethodNameResolver, WebContentInterceptor.

The default implementation is AntPathMatcher, supporting Ant-style pattern syntax.

Since:
1.2
Author:
Juergen Hoeller
See Also:
AntPathMatcher, PathMatchingResourcePatternResolver, AbstractUrlHandlerMapping, PropertiesMethodNameResolver, WebContentInterceptor

Method Summary
 boolean isPattern(String str)
          Return if the given string represents a pattern to be matched via this class: If not, the "match" method does not have to be used because direct equality comparisons are sufficient.
 boolean match(String pattern, String str)
          Match a string against the given pattern.
 

Method Detail

isPattern

boolean isPattern(String str)
Return if the given string represents a pattern to be matched via this class: If not, the "match" method does not have to be used because direct equality comparisons are sufficient.

Parameters:
str - the string to check
Returns:
whether the given string represents a pattern
See Also:
match(java.lang.String, java.lang.String)

match

boolean match(String pattern,
              String str)
Match a string against the given pattern.

Parameters:
pattern - the pattern to match against
str - the string to test
Returns:
whether the arguments matched


Copyright (c) 2002-2006 The Spring Framework Project.