org.apache.camel.component.xmpp
Class XmppMessage

java.lang.Object
  extended by org.apache.camel.impl.MessageSupport
      extended by org.apache.camel.impl.DefaultMessage
          extended by org.apache.camel.component.xmpp.XmppMessage
All Implemented Interfaces:
Message

public class XmppMessage
extends DefaultMessage

Represents a Message for working with XMPP

Version:
$Revision:520964 $

Constructor Summary
XmppMessage()
           
XmppMessage(org.jivesoftware.smack.packet.Message jmsMessage)
           
 
Method Summary
protected  Object createBody()
          A factory method to allow a provider to lazily create the message body for inbound messages from other sources
 org.jivesoftware.smack.packet.Message getXmppMessage()
          Returns the underlying XMPP message
 XmppMessage newInstance()
          Returns a new instance
protected  void populateInitialHeaders(Map<String,Object> map)
          A strategy method populate the initial set of headers on an inbound message from an underlying binding
 void setXmppMessage(org.jivesoftware.smack.packet.Message xmppMessage)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.DefaultMessage
addAttachment, copyFrom, createAttachments, createExchangeId, createHeaders, getAttachment, getAttachmentNames, getAttachments, getHeader, getHeader, getHeader, getHeader, getHeaders, hasAttachments, hasHeaders, hasPopulatedHeaders, isFault, populateInitialAttachments, removeAttachment, removeHeader, removeHeaders, setAttachments, setFault, setHeader, setHeaders
 
Methods inherited from class org.apache.camel.impl.MessageSupport
copy, createMessageId, getBody, getBody, getBody, getExchange, getMandatoryBody, getMandatoryBody, getMessageId, setBody, setBody, setExchange, setMessageId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmppMessage

public XmppMessage()

XmppMessage

public XmppMessage(org.jivesoftware.smack.packet.Message jmsMessage)
Method Detail

toString

public String toString()
Overrides:
toString in class DefaultMessage

getXmppMessage

public org.jivesoftware.smack.packet.Message getXmppMessage()
Returns the underlying XMPP message


setXmppMessage

public void setXmppMessage(org.jivesoftware.smack.packet.Message xmppMessage)

newInstance

public XmppMessage newInstance()
Description copied from class: MessageSupport
Returns a new instance

Overrides:
newInstance in class DefaultMessage

createBody

protected Object createBody()
Description copied from class: MessageSupport
A factory method to allow a provider to lazily create the message body for inbound messages from other sources

Overrides:
createBody in class MessageSupport
Returns:
the value of the message body or null if there is no value available

populateInitialHeaders

protected void populateInitialHeaders(Map<String,Object> map)
Description copied from class: DefaultMessage
A strategy method populate the initial set of headers on an inbound message from an underlying binding

Overrides:
populateInitialHeaders in class DefaultMessage
Parameters:
map - is the empty header map to populate


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