org.mule.transport.cxf
Class CxfMessageAdapter
java.lang.Object
org.mule.transport.AbstractMessageAdapter
org.mule.transport.cxf.CxfMessageAdapter
- All Implemented Interfaces:
- Serializable, ThreadSafeAccess, MessageAdapter
public class CxfMessageAdapter
- extends AbstractMessageAdapter
- See Also:
- Serialized Form
Methods inherited from class org.mule.transport.AbstractMessageAdapter |
addInboundProperties, addProperties, addProperties, assertAccess, clearProperties, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationId, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getProperty, getProperty, getProperty, getPropertyNames, getPropertyNames, getReplyTo, getStringProperty, getUniqueId, isDisabled, newException, newThreadCopy, release, removeProperty, resetAccessControl, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setProperty, setReplyTo, setStringProperty, toString |
CxfMessageAdapter
public CxfMessageAdapter(MessageAdapter msg)
throws MuleException
- Throws:
MuleException
setPayload
public void setPayload(org.apache.cxf.message.Message message)
getPayload
public Object getPayload()
- Returns:
- the current payload
addAttachment
public void addAttachment(String name,
DataHandler dataHandler)
throws Exception
- Description copied from class:
AbstractMessageAdapter
- Allows for arbitary data attachments to be associated with the Message. These attachements work in the
same way that email attachments work. Attachments can be binary or text
- Specified by:
addAttachment
in interface MessageAdapter
- Overrides:
addAttachment
in class AbstractMessageAdapter
- Parameters:
name
- the name to associate with the attachmentdataHandler
- The attachment datahandler to use. This will be used to interract with the attachment data
- Throws:
Exception
- See Also:
DataHandler
removeAttachment
public void removeAttachment(String name)
throws Exception
- Description copied from class:
AbstractMessageAdapter
- Remove an attahcment form this message with the specifed name
- Specified by:
removeAttachment
in interface MessageAdapter
- Overrides:
removeAttachment
in class AbstractMessageAdapter
- Parameters:
name
- the name of the attachment to remove. If the attachment does not exist, the request may be ignorred
- Throws:
Exception
- different messaging systems handle attachments differnetly, as such some will throw an exception
if an attahcment does dot exist.
getAttachments
protected Collection<org.apache.cxf.message.Attachment> getAttachments()
throws MuleException
- Throws:
MuleException
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.