Smack

org.jivesoftware.smack.filter
Class ThreadFilter

java.lang.Object
  extended by org.jivesoftware.smack.filter.ThreadFilter
All Implemented Interfaces:
PacketFilter

public class ThreadFilter
extends Object
implements PacketFilter

Filters for message packets with a particular thread value.

Author:
Matt Tucker

Constructor Summary
ThreadFilter(String thread)
          Creates a new thread filter using the specified thread value.
 
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
 

Constructor Detail

ThreadFilter

public ThreadFilter(String thread)
Creates a new thread filter using the specified thread value.

Parameters:
thread - the thread value to filter for.
Method Detail

accept

public boolean accept(Packet packet)
Description copied from interface: PacketFilter
Tests whether or not the specified packet should pass the filter.

Specified by:
accept in interface PacketFilter
Parameters:
packet - the packet to test.
Returns:
true if and only if packet passes the filter.

Smack

Copyright © 2003-2007 Jive Software.