Package 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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.server.filter.DataFilter
DataFilter.Abort, DataFilter.AbortException -
Field Summary
-
Constructor Summary
Constructors Constructor Description RegexFilter() -
Method Summary
Modifier and Type Method Description protected ObjectfilterString(ServerSession session, ServerChannel channel, String string)voidinit(Object init)Theinitobject must be an array of array of this form:Methods inherited from class org.cometd.server.filter.JSONDataFilter
filter, filterArray, filterBoolean, filterBoolean, filterCollection, filterList, filterMap, filterNumber, filterNumber, filterObject, filterString
-
Field Details
-
Constructor Details
-
RegexFilter
public RegexFilter()
-
-
Method Details
-
init
The
initobject must be an array of array of this form:[ [regex1, replacement1], [regex2, replacement2], ... ]If the
replacementstring is null, then anDataFilter.AbortExceptionis thrown if the pattern matches.- Overrides:
initin classJSONDataFilter
-
filterString
- Overrides:
filterStringin classJSONDataFilter
-