public class MessageTypeFilter extends Object implements PacketFilter
org.jivesoftware.smack.packet.Message.Type| Constructor and Description |
|---|
MessageTypeFilter(org.xmpp.packet.Message.Type type)
Creates a new message type filter using the specified message type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.xmpp.packet.Packet packet)
Tests whether or not the specified packet should pass the filter.
|
public MessageTypeFilter(org.xmpp.packet.Message.Type type)
type - the message type.public boolean accept(org.xmpp.packet.Packet packet)
PacketFilteraccept in interface PacketFilterpacket - the packet to test.Copyright © 2014. All Rights Reserved.