org.apache.synapse.format
Class BinaryFormatter
java.lang.Object
org.apache.synapse.format.BinaryFormatter
- All Implemented Interfaces:
- MessageFormatter, MessageFormatterEx
public class BinaryFormatter
- extends Object
- implements MessageFormatterEx
|
Method Summary |
String |
formatSOAPAction(MessageContext messageContext,
OMOutputFormat format,
String soapAction)
|
byte[] |
getBytes(MessageContext messageContext,
OMOutputFormat format)
|
String |
getContentType(MessageContext messageContext,
OMOutputFormat format,
String soapAction)
|
DataSource |
getDataSource(MessageContext messageContext,
OMOutputFormat format,
String soapAction)
Get the formatted message as a DataSource object. |
URL |
getTargetAddress(MessageContext messageContext,
OMOutputFormat format,
URL targetURL)
|
void |
writeTo(MessageContext messageContext,
OMOutputFormat format,
OutputStream outputStream,
boolean preserve)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryFormatter
public BinaryFormatter()
getBytes
public byte[] getBytes(MessageContext messageContext,
OMOutputFormat format)
throws AxisFault
- Specified by:
getBytes in interface MessageFormatter
- Throws:
AxisFault
writeTo
public void writeTo(MessageContext messageContext,
OMOutputFormat format,
OutputStream outputStream,
boolean preserve)
throws AxisFault
- Specified by:
writeTo in interface MessageFormatter
- Throws:
AxisFault
getContentType
public String getContentType(MessageContext messageContext,
OMOutputFormat format,
String soapAction)
- Specified by:
getContentType in interface MessageFormatter
getTargetAddress
public URL getTargetAddress(MessageContext messageContext,
OMOutputFormat format,
URL targetURL)
throws AxisFault
- Specified by:
getTargetAddress in interface MessageFormatter
- Throws:
AxisFault
formatSOAPAction
public String formatSOAPAction(MessageContext messageContext,
OMOutputFormat format,
String soapAction)
- Specified by:
formatSOAPAction in interface MessageFormatter
getDataSource
public DataSource getDataSource(MessageContext messageContext,
OMOutputFormat format,
String soapAction)
throws AxisFault
- Description copied from interface:
MessageFormatterEx
- Get the formatted message as a
DataSource object.
- Specified by:
getDataSource in interface MessageFormatterEx
- Returns:
-
- Throws:
AxisFault
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.