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 Object
- implements StringMatchingMatcher
Implements a regex like interface on top of WildcardMatcher, this is really just a convenience 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,
String patternStr,
String matchStr)
find
public boolean find()
- Specified by:
find in interface StringMatchingMatcher
isFound
public boolean isFound()
- Specified by:
isFound in interface StringMatchingMatcher
replaceAll
public String replaceAll(String subjectOfReplacement)
groupCount
public int groupCount()
- Specified by:
groupCount in interface StringMatchingMatcher
group
public String group(int groupId)
- Specified by:
group in interface StringMatchingMatcher
end
public int end()
- Specified by:
end in interface StringMatchingMatcher
reset
public void reset()
- Specified by:
reset in interface StringMatchingMatcher
start
public int start()
- Specified by:
start in interface StringMatchingMatcher
isMultipleMatchingSupported
public boolean isMultipleMatchingSupported()
- Specified by:
isMultipleMatchingSupported in interface StringMatchingMatcher
getMatchedString
public String getMatchedString()
Copyright © 2001-2012 Paul Tuckey. All Rights Reserved.