public class PacketTypeFilter extends Object implements PacketFilter
| Constructor and Description |
|---|
PacketTypeFilter(Class<? extends org.xmpp.packet.Packet> packetType)
Creates a new packet type filter that will filter for packets that are
the same type as packetType.
|
public PacketTypeFilter(Class<? extends org.xmpp.packet.Packet> packetType)
packetType - the Class type.public boolean accept(org.xmpp.packet.Packet packet)
PacketFilteraccept in interface PacketFilterpacket - the packet to test.Copyright © 2014. All Rights Reserved.