org.mule.transport.soap.axis
Class AxisMessageAdapter
java.lang.Object
org.mule.transport.AbstractMessageAdapter
org.mule.transport.soap.axis.AxisMessageAdapter
- All Implemented Interfaces:
- Serializable, ThreadSafeAccess, MessageAdapter
public class AxisMessageAdapter
- extends AbstractMessageAdapter
AxisMessageAdapter
wraps a soap message. The payload of the adapter
is the raw message received from the transport, but you also have access to the
SOAPMessage object by using adapter.getSOAPMessage()
- 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, release, removeProperty, resetAccessControl, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setProperty, setReplyTo, setStringProperty, toString |
AxisMessageAdapter
public AxisMessageAdapter(Object message)
throws MessagingException
- Throws:
MessagingException
AxisMessageAdapter
public AxisMessageAdapter(AxisMessageAdapter template)
getPayload
public Object getPayload()
- Returns:
- the current message
getSoapMessage
public javax.xml.soap.SOAPMessage getSoapMessage()
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.
newThreadCopy
public ThreadSafeAccess newThreadCopy()
- Description copied from class:
AbstractMessageAdapter
-
- Specified by:
newThreadCopy
in interface ThreadSafeAccess
- Overrides:
newThreadCopy
in class AbstractMessageAdapter
- Returns:
- A new instance of the implementing class, unbound to any thread and mutable.
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.