|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smack.filter.PacketExtensionFilter
public class PacketExtensionFilter
Filters for packets with a particular type of packet extension.
| Constructor Summary | |
|---|---|
PacketExtensionFilter(String namespace)
Creates a new packet extension filter. |
|
PacketExtensionFilter(String elementName,
String namespace)
Creates a new packet extension filter. |
|
| 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 |
|---|
public PacketExtensionFilter(String elementName,
String namespace)
elementName - the XML element name of the packet extension.namespace - the XML namespace of the packet extension.public PacketExtensionFilter(String namespace)
namespace - the XML namespace of the packet extension.| Method Detail |
|---|
public boolean accept(Packet packet)
PacketFilter
accept in interface PacketFilterpacket - the packet to test.
|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||