org.apache.axis2.format
Class MessageFormatterExAdapter
java.lang.Object
org.apache.axis2.format.MessageFormatterExAdapter
- All Implemented Interfaces:
- MessageFormatterEx, org.apache.axis2.transport.MessageFormatter
public class MessageFormatterExAdapter
- extends java.lang.Object
- implements 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).
|
Method Summary |
java.lang.String |
formatSOAPAction(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.lang.String soapAction)
|
byte[] |
getBytes(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format)
|
java.lang.String |
getContentType(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.lang.String soapAction)
|
javax.activation.DataSource |
getDataSource(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.lang.String soapAction)
Get the formatted message as a DataSource object. |
java.net.URL |
getTargetAddress(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.net.URL targetURL)
|
void |
writeTo(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.io.OutputStream outputStream,
boolean preserve)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageFormatterExAdapter
public MessageFormatterExAdapter(org.apache.axis2.transport.MessageFormatter messageFormatter)
getDataSource
public javax.activation.DataSource getDataSource(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.lang.String soapAction)
throws org.apache.axis2.AxisFault
- Description copied from interface:
MessageFormatterEx
- Get the formatted message as a
DataSource object.
- Specified by:
getDataSource in interface MessageFormatterEx
- Returns:
-
- Throws:
org.apache.axis2.AxisFault
formatSOAPAction
public java.lang.String formatSOAPAction(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.lang.String soapAction)
- Specified by:
formatSOAPAction in interface org.apache.axis2.transport.MessageFormatter
getBytes
public byte[] getBytes(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format)
throws org.apache.axis2.AxisFault
- Specified by:
getBytes in interface org.apache.axis2.transport.MessageFormatter
- Throws:
org.apache.axis2.AxisFault
getContentType
public java.lang.String getContentType(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.lang.String soapAction)
- Specified by:
getContentType in interface org.apache.axis2.transport.MessageFormatter
getTargetAddress
public java.net.URL getTargetAddress(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.net.URL targetURL)
throws org.apache.axis2.AxisFault
- Specified by:
getTargetAddress in interface org.apache.axis2.transport.MessageFormatter
- Throws:
org.apache.axis2.AxisFault
writeTo
public void writeTo(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.io.OutputStream outputStream,
boolean preserve)
throws org.apache.axis2.AxisFault
- Specified by:
writeTo in interface org.apache.axis2.transport.MessageFormatter
- Throws:
org.apache.axis2.AxisFault
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.