powered by Jive Software

Custom PacketExtension

I want to create a custom packet extension or at the very least add custom XML using the DefaultPacketExtension, but I don’'t see any examples of how to do this which seems odd. Any help would be appreciated.

Should be pretty easy. Create a class that implements PacketExtension and then use Packet.addExtension to add it to the message.

If you’'re doing something really basic, you can use DefaultPacketExtension and setValue

How do I read my custom PacketExtension? I read something about the PacketExtensionProvider, but didn’'t understand, how to use it. Is there somewhere a howto?