org.securityfilter.filter
Class URLPatternMatcher

java.lang.Object
  extended byorg.securityfilter.filter.URLPatternMatcher

public class URLPatternMatcher
extends Object

URLPatternMatcher - A non-thread safe object to be used to match a request pattern with URLPattern objects.

Version:
$Revision: 1.1 $ $Date: 2004/07/03 20:53:45 $
Author:
Max Cooper (max@maxcooper.com)

Constructor Summary
URLPatternMatcher()
          Constructor
 
Method Summary
 boolean match(String pattern, String httpMethod, URLPattern urlPattern)
          Test to see if a string pattern and HTTP method matches a URLPattern.
 boolean match(String pattern, URLPattern urlPattern)
          Test to see if a string pattern matches a URLPattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLPatternMatcher

public URLPatternMatcher()
Constructor

Method Detail

match

public boolean match(String pattern,
                     URLPattern urlPattern)
              throws Exception
Test to see if a string pattern matches a URLPattern.

Parameters:
pattern - a String pattern to check for a match
urlPattern - a URLPattern object to match against
Returns:
true if the pattern matched the urlPattern, false otherwise
Throws:
Exception

match

public boolean match(String pattern,
                     String httpMethod,
                     URLPattern urlPattern)
              throws Exception
Test to see if a string pattern and HTTP method matches a URLPattern.

Parameters:
pattern - a String pattern to check for a match
httpMethod - an HTTP pattern to check for a match
urlPattern - a URLPattern object to match against
Returns:
true if the pattern matched the urlPattern, false otherwise
Throws:
Exception