Class XmppBinding


  • public class XmppBinding
    extends Object
    A Strategy used to convert between a Camel Exchange and XmppMessage to and from a XMPP Message
    • Constructor Detail

      • XmppBinding

        public XmppBinding()
      • XmppBinding

        public XmppBinding​(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
    • Method Detail

      • populateXmppMessage

        public void populateXmppMessage​(org.jivesoftware.smack.packet.Message message,
                                        org.apache.camel.Exchange exchange)
        Populates the given XMPP message from the inbound exchange
      • populateXmppStanza

        public void populateXmppStanza​(org.jivesoftware.smack.packet.Stanza stanza,
                                       org.apache.camel.Exchange exchange)
        Populates the given XMPP stanza from the inbound exchange
      • extractBodyFromXmpp

        public Object extractBodyFromXmpp​(org.apache.camel.Exchange exchange,
                                          org.jivesoftware.smack.packet.Stanza stanza)
        Extracts the body from the XMPP message
      • extractHeadersFromXmpp

        public Map<String,​Object> extractHeadersFromXmpp​(org.jivesoftware.smack.packet.Stanza stanza,
                                                               org.apache.camel.Exchange exchange)