org.apache.camel.component.xmpp
Class XmppExchange

java.lang.Object
  extended by org.apache.camel.impl.DefaultExchange
      extended by org.apache.camel.component.xmpp.XmppExchange
All Implemented Interfaces:
org.apache.camel.Exchange

public class XmppExchange
extends org.apache.camel.impl.DefaultExchange

Represents an for working with XMPP

Version:
$Revision:520964 $

Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultExchange
context
 
Constructor Summary
XmppExchange(org.apache.camel.CamelContext context, XmppBinding binding)
           
XmppExchange(org.apache.camel.CamelContext context, XmppBinding binding, org.jivesoftware.smack.packet.Message message)
           
 
Method Summary
protected  XmppMessage createInMessage()
           
protected  XmppMessage createOutMessage()
           
 XmppBinding getBinding()
           
 XmppMessage getFault()
           
 org.jivesoftware.smack.packet.Message getFaultMessage()
          Return the underlying XMPP Fault message
 XmppMessage getIn()
           
 org.jivesoftware.smack.packet.Message getInMessage()
          Return the underlying XMPP In message
 XmppMessage getOut()
           
 XmppMessage getOut(boolean lazyCreate)
           
 org.jivesoftware.smack.packet.Message getOutMessage()
          Return the underlying XMPP Out message
 org.apache.camel.Exchange newInstance()
           
 
Methods inherited from class org.apache.camel.impl.DefaultExchange
configureMessage, copy, copyFrom, getContext, getException, getExchangeId, getProperties, getProperty, getProperty, setException, setExchangeId, setFault, setIn, setOut, setProperties, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmppExchange

public XmppExchange(org.apache.camel.CamelContext context,
                    XmppBinding binding)

XmppExchange

public XmppExchange(org.apache.camel.CamelContext context,
                    XmppBinding binding,
                    org.jivesoftware.smack.packet.Message message)
Method Detail

getIn

public XmppMessage getIn()
Specified by:
getIn in interface org.apache.camel.Exchange
Overrides:
getIn in class org.apache.camel.impl.DefaultExchange

getOut

public XmppMessage getOut()
Specified by:
getOut in interface org.apache.camel.Exchange
Overrides:
getOut in class org.apache.camel.impl.DefaultExchange

getOut

public XmppMessage getOut(boolean lazyCreate)
Specified by:
getOut in interface org.apache.camel.Exchange
Overrides:
getOut in class org.apache.camel.impl.DefaultExchange

getFault

public XmppMessage getFault()
Specified by:
getFault in interface org.apache.camel.Exchange
Overrides:
getFault in class org.apache.camel.impl.DefaultExchange

getBinding

public XmppBinding getBinding()

newInstance

public org.apache.camel.Exchange newInstance()
Overrides:
newInstance in class org.apache.camel.impl.DefaultExchange

getInMessage

public org.jivesoftware.smack.packet.Message getInMessage()
Return the underlying XMPP In message

Returns:
the XMPP In message

getOutMessage

public org.jivesoftware.smack.packet.Message getOutMessage()
Return the underlying XMPP Out message

Returns:
the XMPP out message

getFaultMessage

public org.jivesoftware.smack.packet.Message getFaultMessage()
Return the underlying XMPP Fault message

Returns:
the XMPP fault message

createInMessage

protected XmppMessage createInMessage()
Overrides:
createInMessage in class org.apache.camel.impl.DefaultExchange

createOutMessage

protected XmppMessage createOutMessage()
Overrides:
createOutMessage in class org.apache.camel.impl.DefaultExchange


Copyright © 2007 Apache Software Foundation. All Rights Reserved.