|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.transport.fix.FIXUtils
public class FIXUtils
Constructor Summary | |
---|---|
FIXUtils()
|
Method Summary | |
---|---|
static boolean |
compareURLs(String url1,
String url2)
Compares two given FIX URL strings. |
quickfix.Message |
createFIXMessage(MessageContext msgCtx)
Extract the FIX message embedded in an Axis2 MessageContext |
static String[] |
generateEPRs(quickfix.SocketAcceptor acceptor,
String serviceName,
String ip)
Generate EPRs for the specified FIX service. |
static String[] |
getEPRs(quickfix.SessionSettings settings)
|
static String |
getFixApplication(MessageContext msgCtx)
Extracts the application type for the message from the message context |
static FIXUtils |
getInstance()
|
static Map<String,String> |
getMessageForwardingParameters(quickfix.Message message)
Extracts the fields related to message forwarding (third party routing) from the FIX header. |
static OMNamespace |
getNamespaceOfFIXPayload(SOAPBody fixBody)
Read the FIX message payload and identify the namespace if exists |
static int |
getSequenceNumber(MessageContext msgCtx)
Reads the SOAP body of a message and attempts to retreive the application level sequence number |
static String |
getServiceName(MessageContext msgCtx)
Extracts the name of the service which processed the message from the MessageContext |
static String[] |
getSocketAddressElements(String fixEPR)
Reads a FIX EPR and returns the host and port on a String array |
static String |
getSourceSession(MessageContext msgCtx)
Reads the SOAP body of a message and attempts to retreive the session identifier string |
static Map<String,String> |
getTransportHeaders(String serviceName,
String fixApplication)
Creates a Map of transport headers for a message |
void |
setSOAPEnvelope(quickfix.Message message,
int counter,
String sessionID,
MessageContext msgCtx)
FIX messages are non-XML. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FIXUtils()
Method Detail |
---|
public static FIXUtils getInstance()
public void setSOAPEnvelope(quickfix.Message message, int counter, String sessionID, MessageContext msgCtx) throws AxisFault
message
- the FIX messagecounter
- application level sequence number of the messagesessionID
- the incoming sessionmsgCtx
- the Axis2 MessageContext to hold the FIX message
AxisFault
- the exception thrown when invalid soap envelopes are set to the msgCtxpublic quickfix.Message createFIXMessage(MessageContext msgCtx) throws IOException
msgCtx
- the Axis2 MessageContext
IOException
- the exception thrown when handling erroneous binary contentpublic static String[] generateEPRs(quickfix.SocketAcceptor acceptor, String serviceName, String ip)
acceptor
- the SocketAcceptor associated with the serviceserviceName
- the name of the serviceip
- the IP address of the host
public static String[] getEPRs(quickfix.SessionSettings settings) throws quickfix.FieldConvertError, quickfix.ConfigError
quickfix.FieldConvertError
quickfix.ConfigError
public static boolean compareURLs(String url1, String url2)
url1
- a FIX URL Stringurl2
- a FIX URL String
public static Map<String,String> getMessageForwardingParameters(quickfix.Message message)
message
- the FIX message
public static String getServiceName(MessageContext msgCtx) throws AxisFault
msgCtx
- Axis2 MessageContext of a message
AxisFault
- on errorpublic static String getFixApplication(MessageContext msgCtx)
msgCtx
- Axis2 Message Context
public static Map<String,String> getTransportHeaders(String serviceName, String fixApplication)
serviceName
- name of the service to which the message belongs tofixApplication
- FIX application type
public static String[] getSocketAddressElements(String fixEPR) throws AxisFault
fixEPR
- a FIX EPR
AxisFault
- on errorpublic static int getSequenceNumber(MessageContext msgCtx)
msgCtx
- Axis2 MessageContext
public static String getSourceSession(MessageContext msgCtx)
msgCtx
- Axis2 MessageContext
public static OMNamespace getNamespaceOfFIXPayload(SOAPBody fixBody)
fixBody
- FIX message payload
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |