org.mule.providers.xmpp
Class XmppMessageAdapter
java.lang.Object
org.mule.providers.AbstractMessageAdapter
org.mule.providers.xmpp.XmppMessageAdapter
- All Implemented Interfaces:
- Serializable, ThreadSafeAccess, UMOMessageAdapter
- public class XmppMessageAdapter
- extends AbstractMessageAdapter
XmppMessageAdapter wraps a Smack XMPP packet
- See Also:
- Serialized Form
| Methods inherited from class org.mule.providers.AbstractMessageAdapter |
addAttachment, addProperties, assertAccess, clearProperties, convertToBytes, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationId, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getPayloadAsString, getProperty, getProperty, getPropertyNames, getReplyTo, getStringProperty, isDisabled, newException, removeAttachment, removeProperty, resetAccessControl, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setReplyTo, setStringProperty, toString |
DEFAULT_SUBJECT
public static final String DEFAULT_SUBJECT
- See Also:
- Constant Field Values
DEFAULT_THREAD
public static final String DEFAULT_THREAD
- See Also:
- Constant Field Values
XmppMessageAdapter
public XmppMessageAdapter(Object message)
throws MessagingException
XmppMessageAdapter
protected XmppMessageAdapter(XmppMessageAdapter template)
getPayloadAsString
public String getPayloadAsString(String encoding)
throws Exception
- Converts the message implementation into a String representation
- Parameters:
encoding - The encoding to use when transforming the message (if
necessary). The parameter is used when converting from a byte array
- Returns:
- String representation of the message payload
- Throws:
Exception - Implementation may throw an endpoint specific exception
getPayloadAsBytes
public byte[] getPayloadAsBytes()
throws Exception
- Throws:
Exception
getPayload
public Object getPayload()
getUniqueId
public String getUniqueId()
newThreadCopy
public ThreadSafeAccess newThreadCopy()
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.