public boolean filter ( Event event ) { LOG . info ( "StringContentFilter called" ) ; if ( wordsToFilter != null ) { for ( String filterWord : wordsToFilter ) { if ( event . getContent ( ) != null && - 1 != event . getContent ( ) . indexOf ( filterWord ) ) { return true ; } } } return false ; }
Filter event if word occurs in wordsToFilter .