org.tuckey.web.filters.urlrewrite.utils
Class WildcardMatcher
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WildcardMatcher
public WildcardMatcher(WildcardHelper wh,
java.lang.String patternStr,
java.lang.String matchStr)
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