org.jivesoftware.smack.filter
Class FromContainsFilter
java.lang.Object
   org.jivesoftware.smack.filter.FromContainsFilter
org.jivesoftware.smack.filter.FromContainsFilter
- All Implemented Interfaces: 
- PacketFilter
- public class FromContainsFilter 
- extends Object- implements PacketFilter
Filters for packets where the "from" field contains a specified value.
- Author:
- Matt Tucker
 
| Method Summary | 
|  boolean | accept(Packet packet)Tests whether or not the specified packet should pass the filter.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
FromContainsFilter
public FromContainsFilter(String from)
- Creates a "from" contains filter using the "from" field part.
 
- Parameters:
- from- the from field value the packet must contain.
 
accept
public boolean accept(Packet packet)
- Description copied from interface: PacketFilter
- Tests whether or not the specified packet should pass the filter.
 
- 
- Specified by:
- acceptin interface- PacketFilter
 
- 
- Parameters:
- packet- the packet to test.
- Returns:
- true if and only if packet passes the filter.
 
Copyright © 2003-2007 Jive Software.