org.radeox.filter
Class EscapeFilter
java.lang.Object
|
+--org.radeox.filter.FilterSupport
|
+--org.radeox.filter.regex.RegexFilter
|
+--org.radeox.filter.regex.RegexTokenFilter
|
+--org.radeox.filter.regex.LocaleRegexTokenFilter
|
+--org.radeox.filter.EscapeFilter
- All Implemented Interfaces:
- ActionMatch, CacheFilter, Filter
- public class EscapeFilter
- extends LocaleRegexTokenFilter
- implements CacheFilter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EscapeFilter
public EscapeFilter()
getLocaleKey
protected java.lang.String getLocaleKey()
- Specified by:
getLocaleKey
in class LocaleRegexTokenFilter
handleMatch
public void handleMatch(java.lang.StringBuffer buffer,
MatchResult result,
FilterContext context)
- Description copied from class:
RegexTokenFilter
- Method is called for every occurance of a regular expression.
Subclasses have to implement this mehtod.
- Specified by:
handleMatch
in interface ActionMatch
- Specified by:
handleMatch
in class RegexTokenFilter
- Parameters:
buffer
- Buffer to write replacement string toresult
- Hit with the found regualr expressioncontext
- FilterContext for filters
handleMatch
public java.lang.String handleMatch(MatchResult result,
FilterContext context)
escape
public static java.lang.String escape(int c)
before
public java.lang.String[] before()
- Specified by:
before
in interface Filter
- Overrides:
before
in class FilterSupport
Copyright © 2003 Matthias L. Jugel, Stephan J. Schmidt. All Rights Reserved.