站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

PathMatcher (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


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-2007 The Spring Framework Project.