If you want to create an openfire plugin which is listening for some packets / messages and should react based on message content e.g. Bot. In my example plugin I want to listen for a message which contains packet extensions and parse the data from XML.
The message looks like:
1 | <message id="ri1KL-7" to="username@servername.com" type="chat"> |
And the Openfire Plugin code to log the data looks like this:
1 | package org.jivesoftware.openfire.plugin.rest; |