Class FIXMessageFromatter
- java.lang.Object
-
- org.apache.synapse.transport.fix.message.FIXMessageFromatter
-
- All Implemented Interfaces:
org.apache.axis2.transport.MessageFormatter
public class FIXMessageFromatter extends Object implements org.apache.axis2.transport.MessageFormatter
Reads the incoming message context and convert them back to the fix raw message
-
-
Constructor Summary
Constructors Constructor Description FIXMessageFromatter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringformatSOAPAction(org.apache.axis2.context.MessageContext arg0, org.apache.axiom.om.OMOutputFormat arg1, String arg2)byte[]getBytes(org.apache.axis2.context.MessageContext arg0, org.apache.axiom.om.OMOutputFormat arg1)StringgetContentType(org.apache.axis2.context.MessageContext msgCtxt, org.apache.axiom.om.OMOutputFormat format, String soapActionString)static org.apache.axiom.om.OMNamespacegetNamespaceOfFIXPayload(org.apache.axiom.soap.SOAPBody fixBody)Read the FIX message payload and identify the namespace if existsURLgetTargetAddress(org.apache.axis2.context.MessageContext arg0, org.apache.axiom.om.OMOutputFormat arg1, URL arg2)voidwriteTo(org.apache.axis2.context.MessageContext msgCtx, org.apache.axiom.om.OMOutputFormat format, OutputStream out, boolean arg3)
-
-
-
Method Detail
-
formatSOAPAction
public String formatSOAPAction(org.apache.axis2.context.MessageContext arg0, org.apache.axiom.om.OMOutputFormat arg1, String arg2)
- Specified by:
formatSOAPActionin interfaceorg.apache.axis2.transport.MessageFormatter
-
getBytes
public byte[] getBytes(org.apache.axis2.context.MessageContext arg0, org.apache.axiom.om.OMOutputFormat arg1) throws org.apache.axis2.AxisFault- Specified by:
getBytesin interfaceorg.apache.axis2.transport.MessageFormatter- Throws:
org.apache.axis2.AxisFault
-
getContentType
public String getContentType(org.apache.axis2.context.MessageContext msgCtxt, org.apache.axiom.om.OMOutputFormat format, String soapActionString)
- Specified by:
getContentTypein interfaceorg.apache.axis2.transport.MessageFormatter
-
getTargetAddress
public URL getTargetAddress(org.apache.axis2.context.MessageContext arg0, org.apache.axiom.om.OMOutputFormat arg1, URL arg2) throws org.apache.axis2.AxisFault
- Specified by:
getTargetAddressin interfaceorg.apache.axis2.transport.MessageFormatter- Throws:
org.apache.axis2.AxisFault
-
getNamespaceOfFIXPayload
public static org.apache.axiom.om.OMNamespace getNamespaceOfFIXPayload(org.apache.axiom.soap.SOAPBody fixBody)
Read the FIX message payload and identify the namespace if exists- Parameters:
fixBody- FIX message payload- Returns:
- namespace as a OMNamespace
-
writeTo
public void writeTo(org.apache.axis2.context.MessageContext msgCtx, org.apache.axiom.om.OMOutputFormat format, OutputStream out, boolean arg3) throws org.apache.axis2.AxisFault- Specified by:
writeToin interfaceorg.apache.axis2.transport.MessageFormatter- Throws:
org.apache.axis2.AxisFault
-
-