- All Implemented Interfaces:
public class PEPProvider
- extends Object
- implements PacketExtensionProvider
The PEPProvider parses incoming PEPEvent packets.
(XEP-163 has a weird asymmetric deal: outbound PEP are + and inbound are + .
The provider only deals with inbound, and so it only deals with .
The way this works is that PEPxxx classes are generic and providers, and anyone who
wants to publish/receive PEPs, such as , , etc., simply need to extend PEPItem and register (here)
a PacketExtensionProvider that knows how to parse that PEPItem extension.
- Jeff Williams
Creates a new PEPProvider.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- Creates a new PEPProvider.
ProviderManager requires that every PacketExtensionProvider has a public, no-argument constructor
public void registerPEPParserExtension(String node,
public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
- Parses a PEPEvent packet and extracts a PEPItem from it.
(There is only one per .)
- Specified by:
parseExtension in interface
parser - the XML parser, positioned at the starting element of the extension.
- a PacketExtension.
Exception - if a parsing error occurs.
Copyright © 2003-2007 Jive Software.