org.tuckey.web.filters.urlrewrite.utils
Class WildcardMatcher

java.lang.Object
  extended by org.tuckey.web.filters.urlrewrite.utils.WildcardMatcher
All Implemented Interfaces:
StringMatchingMatcher

public class WildcardMatcher
extends java.lang.Object
implements StringMatchingMatcher

Implements a regex like interface on top of WildcardMatcher, this is really just a convinience class so that it's easier for us to program against regex and wildcard patterns.


Constructor Summary
WildcardMatcher(WildcardHelper wh, java.lang.String patternStr, java.lang.String matchStr)
           
 
Method Summary
 boolean find()
           
 java.lang.String group(int groupId)
           
 int groupCount()
           
 boolean isFound()
           
 java.lang.String replaceAll(java.lang.String subjectOfReplacement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WildcardMatcher

public WildcardMatcher(WildcardHelper wh,
                       java.lang.String patternStr,
                       java.lang.String matchStr)
Method Detail

find

public boolean find()
Specified by:
find in interface StringMatchingMatcher

isFound

public boolean isFound()
Specified by:
isFound in interface StringMatchingMatcher

replaceAll

public java.lang.String replaceAll(java.lang.String subjectOfReplacement)
Specified by:
replaceAll in interface StringMatchingMatcher

groupCount

public int groupCount()
Specified by:
groupCount in interface StringMatchingMatcher

group

public java.lang.String group(int groupId)
Specified by:
group in interface StringMatchingMatcher