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

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

public class RegexMatcher
extends java.lang.Object
implements StringMatchingMatcher

Simple wrapper for java.util.regex.Matcher.

See Also:
Matcher

Constructor Summary
RegexMatcher(java.util.regex.Matcher matcher)
           
 
Method Summary
 boolean find()
           
 java.lang.String group(int groupId)
           
 int groupCount()
           
 boolean isFound()
           
 java.lang.String replaceAll(java.lang.String replacement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexMatcher

public RegexMatcher(java.util.regex.Matcher matcher)
Method Detail

find

public boolean find()
Specified by:
find in interface StringMatchingMatcher
See Also:
Matcher.find()

isFound

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

replaceAll

public java.lang.String replaceAll(java.lang.String replacement)
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