public class ToContainsFilter extends Object implements PacketFilter
Constructor and Description |
---|
ToContainsFilter(String to)
Creates a "to" contains filter using the "to" field part.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Packet packet)
Tests whether or not the specified packet should pass the filter.
|
public ToContainsFilter(String to)
to
- the to field value the packet must contain.public boolean accept(Packet packet)
PacketFilter
accept
in interface PacketFilter
packet
- the packet to test.Copyright © 2003-2007 Jive Software.