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 and to and from a XMPP Message

Version:
$Revision: 563665 $

Constructor Summary
XmppBinding()
           
 
Method Summary
 Object extractBodyFromXmpp(XmppExchange exchange, org.jivesoftware.smack.packet.Message message)
          Extracts the body from the XMPP message
 void populateXmppMessage(org.jivesoftware.smack.packet.Message message, org.apache.camel.Exchange exchange)
          Populates the given XMPP message from the inbound exchange
protected  boolean shouldOutputHeader(org.apache.camel.Exchange exchange, String headerName, Object headerValue)
          Strategy to allow filtering of headers which are put on the XMPP message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmppBinding

public XmppBinding()
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


extractBodyFromXmpp

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

Parameters:
exchange -
message -

shouldOutputHeader

protected boolean shouldOutputHeader(org.apache.camel.Exchange exchange,
                                     String headerName,
                                     Object headerValue)
Strategy to allow filtering of headers which are put on the XMPP message



Copyright © 2007 Apache Software Foundation. All Rights Reserved.