
uk.org.retep.xmpp.message.package-info Maven / Gradle / Ivy
/**
* Message API.
*
*
* The Message API provides a common interface to handling messages. In XMPP
* messages are one of three Objects, Message, Iq and Presence. The problem
* is that these three Objects can occur in multiple namespaces, the standard
* ones being: jabber:client, jabber:server, jabber:component:accept and
* jabber:component:connect.
*
*
*
* This package provides three interfaces that the equivalent JAXB generated
* implement. All code that handles messages should then use these interfaces
* instead of the protocol specific interfaces as this then allows the same
* code to work regardless of what underlying protocol is in use.
*
*
*
* For connectors (i.e. components that actually talk to the outside world)
* they should {@link #narrow(uk.org.retep.xmpp.message.BaseXMPPMessage, uk.org.retep.xmpp.message.BaseXMPPMessage)}
* the message into the correct namespace prior to sending them.
*
*
*/
@PublicAPI
package uk.org.retep.xmpp.message;
import uk.org.retep.annotations.PublicAPI;