public class MessageFormatterExAdapter extends Object implements MessageFormatterEx
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 and Description |
|---|
MessageFormatterExAdapter(org.apache.axis2.transport.MessageFormatter messageFormatter) |
| Modifier and Type | Method and Description |
|---|---|
String |
formatSOAPAction(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
String soapAction) |
byte[] |
getBytes(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format) |
String |
getContentType(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
String soapAction) |
javax.activation.DataSource |
getDataSource(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
String soapAction)
Get the formatted message as a
DataSource object. |
URL |
getTargetAddress(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
URL targetURL) |
void |
writeTo(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
OutputStream outputStream,
boolean preserve) |
public MessageFormatterExAdapter(org.apache.axis2.transport.MessageFormatter messageFormatter)
public javax.activation.DataSource getDataSource(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
String soapAction)
throws org.apache.axis2.AxisFault
MessageFormatterExDataSource object.getDataSource in interface MessageFormatterExorg.apache.axis2.AxisFaultpublic String formatSOAPAction(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction)
formatSOAPAction in interface org.apache.axis2.transport.MessageFormatterpublic byte[] getBytes(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format)
throws org.apache.axis2.AxisFault
getBytes in interface org.apache.axis2.transport.MessageFormatterorg.apache.axis2.AxisFaultpublic String getContentType(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction)
getContentType in interface org.apache.axis2.transport.MessageFormatterpublic URL getTargetAddress(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, URL targetURL) throws org.apache.axis2.AxisFault
getTargetAddress in interface org.apache.axis2.transport.MessageFormatterorg.apache.axis2.AxisFaultpublic void writeTo(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
OutputStream outputStream,
boolean preserve)
throws org.apache.axis2.AxisFault
writeTo in interface org.apache.axis2.transport.MessageFormatterorg.apache.axis2.AxisFaultCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.