org.talend.esb.sam.common.filter.impl
Class StringContentFilter

java.lang.Object
  extended by org.talend.esb.sam.common.filter.impl.StringContentFilter
All Implemented Interfaces:
EventFilter

public class StringContentFilter
extends Object
implements EventFilter

The Class StringContentFilter used for filtering words in event.


Constructor Summary
StringContentFilter()
           
 
Method Summary
 boolean filter(Event event)
          Filter event if word occurs in wordsToFilter.
 List<String> getWordsToFilter()
          Gets the words to filter.
 void setWordsToFilter(List<String> wordsToFilter)
          Sets the words to filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringContentFilter

public StringContentFilter()
Method Detail

getWordsToFilter

public List<String> getWordsToFilter()
Gets the words to filter.

Returns:
the words to filter list

setWordsToFilter

public void setWordsToFilter(List<String> wordsToFilter)
Sets the words to filter.

Parameters:
wordsToFilter - the new words to filter list

filter

public boolean filter(Event event)
Filter event if word occurs in wordsToFilter.

Specified by:
filter in interface EventFilter
Parameters:
event - the event
Returns:
true, if successful


Copyright © 2011–2014 Talend Inc.. All rights reserved.