public class MessageFilter extends java.lang.Object implements Filter<javax.jms.Message>
Modifier and Type | Field and Description |
---|---|
static int |
RESET_ALL |
static int |
RESET_MAP |
static int |
RESET_NONE |
static int |
RESET_SOME |
Constructor and Description |
---|
MessageFilter(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkBody() |
boolean |
checkHeader() |
void |
clear() |
boolean |
evaluate(long tm,
javax.jms.Message message)
returns true if the filter matching with the event or false otherwise
|
boolean |
evaluate(javax.jms.Message message,
java.lang.String msgStr)
It applies the Perl5 pattern match on the message and returns true
if the filter gets a hit or false otherwise.
|
boolean |
evaluate(java.lang.String msgStr)
evaluates the msgStr as the message body only
|
protected void |
finalize() |
int |
format(javax.jms.Message message,
byte[] buffer)
formats the message with the predefined formatter and returns number of
fields modified upon success.
|
static java.util.Map<java.lang.String,java.lang.Object>[] |
getPatternMaps(java.lang.String name,
java.util.Map ph,
org.apache.oro.text.regex.Perl5Compiler pc)
returns an array of Map with a group of patterns in each of them
|
static org.apache.oro.text.regex.Pattern[][] |
getPatterns(java.lang.String name,
java.util.Map ph,
org.apache.oro.text.regex.Perl5Compiler pc)
returns an array of pattern groups with the name from property Map
|
boolean |
hasFormatter() |
static MessageFilter[] |
initFilters(java.util.Map ph) |
boolean |
updatedBody() |
public static final int RESET_NONE
public static final int RESET_SOME
public static final int RESET_ALL
public static final int RESET_MAP
public static org.apache.oro.text.regex.Pattern[][] getPatterns(java.lang.String name, java.util.Map ph, org.apache.oro.text.regex.Perl5Compiler pc) throws org.apache.oro.text.regex.MalformedPatternException
org.apache.oro.text.regex.MalformedPatternException
public static java.util.Map<java.lang.String,java.lang.Object>[] getPatternMaps(java.lang.String name, java.util.Map ph, org.apache.oro.text.regex.Perl5Compiler pc) throws org.apache.oro.text.regex.MalformedPatternException
org.apache.oro.text.regex.MalformedPatternException
public boolean evaluate(long tm, javax.jms.Message message)
Filter
public boolean evaluate(javax.jms.Message message, java.lang.String msgStr) throws javax.jms.JMSException
javax.jms.JMSException
public boolean evaluate(java.lang.String msgStr)
public int format(javax.jms.Message message, byte[] buffer) throws javax.jms.JMSException
javax.jms.JMSException
public static MessageFilter[] initFilters(java.util.Map ph)
public boolean checkHeader()
public boolean checkBody()
public boolean updatedBody()
public boolean hasFormatter()
public void clear()
protected void finalize()
finalize
in class java.lang.Object