org.mule.transport.soap.axis
Class AxisMessageAdapter

java.lang.Object
  extended by org.mule.transport.AbstractMessageAdapter
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mule.api.ThreadSafeAccess
ThreadSafeAccess.AccessControl
 
Field Summary
 
Fields inherited from class org.mule.transport.AbstractMessageAdapter
attachments, exceptionPayload, id, logger, properties
 
Fields inherited from interface org.mule.api.ThreadSafeAccess
READ, WRITE
 
Constructor Summary
AxisMessageAdapter(AxisMessageAdapter template)
           
AxisMessageAdapter(Object message)
           
 
Method Summary
 void addAttachment(String name, DataHandler dataHandler)
          Allows for arbitary data attachments to be associated with the Message.
 Object getPayload()
           
 javax.xml.soap.SOAPMessage getSoapMessage()
           
 ThreadSafeAccess newThreadCopy()
          
 void removeAttachment(String name)
          Remove an attahcment form this message with the specifed name
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AxisMessageAdapter

public AxisMessageAdapter(Object message)
                   throws MessagingException
Throws:
MessagingException

AxisMessageAdapter

public AxisMessageAdapter(AxisMessageAdapter template)
Method Detail

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 attachment
dataHandler - 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.