org.cometd.server.filter
Class RegexFilter
java.lang.Object
org.cometd.server.filter.JSONDataFilter
org.cometd.server.filter.RegexFilter
- All Implemented Interfaces:
- DataFilter
public class RegexFilter
- extends JSONDataFilter
- Author:
- gregw
|
Method Summary |
protected void |
checkPatterns()
|
protected java.lang.Object |
filterString(java.lang.String string)
|
void |
init(java.lang.Object init)
Assumes the init object is an Array of 2 element Arrays:
[regex,replacement]. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_templates
protected java.lang.String[] _templates
_replaces
protected java.lang.String[] _replaces
_patterns
protected transient java.util.regex.Pattern[] _patterns
RegexFilter
public RegexFilter()
init
public void init(java.lang.Object init)
- Assumes the init object is an Array of 2 element Arrays:
[regex,replacement]. if the regex replacement string is null, then an
IllegalStateException is thrown if the pattern matches.
- Overrides:
init in class JSONDataFilter
checkPatterns
protected void checkPatterns()
filterString
protected java.lang.Object filterString(java.lang.String string)
- Overrides:
filterString in class JSONDataFilter
Copyright © 2008-2010 Dojo Foundation. All Rights Reserved.