Home » synapse-1.2-src » org.apache.synapse.format » [javadoc | source]
org.apache.synapse.format
public class: MessageFormatterExAdapter [javadoc | source]
java.lang.Object
   org.apache.synapse.format.MessageFormatterExAdapter

All Implemented Interfaces:
    MessageFormatterEx

Adapter to add the MessageFormatterEx interface to an existing MessageFormatter . It implements the MessageFormatterEx#getDataSource(MessageContext, OMOutputFormat, String) method using MessageFormatter#getBytes(MessageContext, OMOutputFormat) and MessageFormatter#getContentType(MessageContext, OMOutputFormat, String) .
Constructor:
 public MessageFormatterExAdapter(MessageFormatter messageFormatter) 
Method from org.apache.synapse.format.MessageFormatterExAdapter Summary:
formatSOAPAction,   getBytes,   getContentType,   getDataSource,   getTargetAddress,   writeTo
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.format.MessageFormatterExAdapter Detail:
 public String formatSOAPAction(MessageContext messageContext,
    OMOutputFormat format,
    String soapAction) 
 public byte[] getBytes(MessageContext messageContext,
    OMOutputFormat format) throws AxisFault 
 public String getContentType(MessageContext messageContext,
    OMOutputFormat format,
    String soapAction) 
 public DataSource getDataSource(MessageContext messageContext,
    OMOutputFormat format,
    String soapAction) throws AxisFault 
 public URL getTargetAddress(MessageContext messageContext,
    OMOutputFormat format,
    URL targetURL) throws AxisFault 
 public  void writeTo(MessageContext messageContext,
    OMOutputFormat format,
    OutputStream outputStream,
    boolean preserve) throws AxisFault