org.springframework.util
Class PathMatcher

java.lang.Object
  extended byorg.springframework.util.PathMatcher

public abstract class PathMatcher
extends java.lang.Object

Utility for matching paths with patterns in an Ant-like way. Examples are provided below. Part of this mapping code has been kindly borrowed from Ant (http://ant.apache.org).

The mapping matches urls using the following rules:

Some examples:

Author:
Alef Arendsen

Constructor Summary
PathMatcher()
           
 
Method Summary
static boolean match(java.lang.String pattern, java.lang.String str)
          Matches a strign agains the given pattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathMatcher

public PathMatcher()
Method Detail

match

public static boolean match(java.lang.String pattern,
                            java.lang.String str)
Matches a strign agains the given pattern

Parameters:
pattern - the pattern to match against
str - the string to test
Returns:
true is the arguments matched, false otherwise


Copyright (C) 2003-2004 The Spring Framework Project.