org.apache.camel.component.xmpp
Class XmppBinding

java.lang.Object
  extended by org.apache.camel.component.xmpp.XmppBinding

public class XmppBinding
extends Object

A Strategy used to convert between a Camel Exchange and XmppMessage to and from a XMPP Message

Version:
$Revision: 14847 $

Constructor Summary
XmppBinding()
           
XmppBinding(HeaderFilterStrategy headerFilterStrategy)
           
 
Method Summary
 Object extractBodyFromXmpp(Exchange exchange, org.jivesoftware.smack.packet.Message message)
          Extracts the body from the XMPP message
 Map<String,Object> extractHeadersFromXmpp(org.jivesoftware.smack.packet.Message xmppMessage, Exchange exchange)
           
 void populateXmppMessage(org.jivesoftware.smack.packet.Message message, Exchange exchange)
          Populates the given XMPP message from the inbound exchange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmppBinding

public XmppBinding()

XmppBinding

public XmppBinding(HeaderFilterStrategy headerFilterStrategy)
Method Detail

populateXmppMessage

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


extractBodyFromXmpp

public Object extractBodyFromXmpp(Exchange exchange,
                                  org.jivesoftware.smack.packet.Message message)
Extracts the body from the XMPP message


extractHeadersFromXmpp

public Map<String,Object> extractHeadersFromXmpp(org.jivesoftware.smack.packet.Message xmppMessage,
                                                 Exchange exchange)


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.