public class SenderRoleFilter extends java.lang.Object implements MessageFilter
Constructor and Description |
---|
SenderRoleFilter(java.lang.String community,
java.lang.String group,
java.lang.String role)
a new filter that acts according to the sender's CGR location.
|
public SenderRoleFilter(java.lang.String community, java.lang.String group, java.lang.String role)
community
- group
- role
- the role that the sender must havepublic boolean accept(Message m)
MessageFilter
accept
in interface MessageFilter
m
- the message to test.true
if and only if the message matches the requirement.
Fabien Michel, Olivier Gutknecht, Jacques Ferber - November 18 2014