public class FromMatchesFilter extends Object implements PacketFilter
Constructor and Description |
---|
FromMatchesFilter(String address)
Creates a "from" filter using the "from" field part.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Packet packet)
Tests whether or not the specified packet should pass the filter.
|
String |
toString() |
public FromMatchesFilter(String address)
address
- the from field value the packet must match. Could be a full or bare JID.public boolean accept(Packet packet)
PacketFilter
accept
in interface PacketFilter
packet
- the packet to test.Copyright © 2003-2007 Jive Software.