Package org.apache.synapse.transport.fix
Class FIXTransportSender
java.lang.Object
org.apache.axis2.handlers.AbstractHandler
org.apache.axis2.transport.base.AbstractTransportSender
org.apache.synapse.transport.fix.FIXTransportSender
- All Implemented Interfaces:
org.apache.axis2.engine.Handler,org.apache.axis2.transport.TransportSender
public class FIXTransportSender
extends org.apache.axis2.transport.base.AbstractTransportSender
The FIX transport sender implementation. This implementation looks at the SOAPBody of the message
context to identify how the message was first received by Axis2 engine and also looks at some FIX
header fields to make the optimum routing decision.
This transport sender implementation does not support forwarding FIX messages to sessions with
different BeginString values.When it performs a message forwarding it makes sure the forwarding
takes place according to the conditions specified in the 'Third Party Routing' section in the
FIX protocol specification.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler
org.apache.axis2.engine.Handler.InvocationResponse -
Field Summary
Fields inherited from class org.apache.axis2.transport.base.AbstractTransportSender
cfgCtx, log, metricsFields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(org.apache.axis2.context.ConfigurationContext cfgCtx, org.apache.axis2.description.TransportOutDescription transportOut) voidlogOutIncomingSession(quickfix.SessionID sessionID) voidsendMessage(org.apache.axis2.context.MessageContext msgCtx, String targetEPR, org.apache.axis2.transport.OutTransportInfo outTransportInfo) Performs the actual sending of the message.protected booleansendUsingEPR(String targetEPR, String serviceName, quickfix.Message fixMessage, String srcSession, int counter, org.apache.axis2.context.MessageContext msgCtx) Sends a FIX message to the given EPRvoidstop()Methods inherited from class org.apache.axis2.transport.base.AbstractTransportSender
cleanup, createResponseMessageContext, getActiveThreadCount, getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getQueueSize, getResponseCodeTable, getTimeoutsReceiving, getTimeoutsSending, getTransportName, handleException, handleException, handleIncomingMessage, invoke, logException, maintenenceShutdown, pause, resetStatistics, resume, waitForSynchronousResponseMethods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.axis2.engine.Handler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, initMethods inherited from interface org.apache.axis2.transport.TransportSender
onAppError
-
Constructor Details
-
FIXTransportSender
public FIXTransportSender()
-
-
Method Details
-
init
public void init(org.apache.axis2.context.ConfigurationContext cfgCtx, org.apache.axis2.description.TransportOutDescription transportOut) throws org.apache.axis2.AxisFault - Specified by:
initin interfaceorg.apache.axis2.transport.TransportSender- Overrides:
initin classorg.apache.axis2.transport.base.AbstractTransportSender- Parameters:
cfgCtx- the axis2 configuration contexttransportOut- the Out Transport description- Throws:
org.apache.axis2.AxisFault- on error
-
stop
public void stop()- Specified by:
stopin interfaceorg.apache.axis2.transport.TransportSender- Overrides:
stopin classorg.apache.axis2.transport.base.AbstractTransportSender
-
sendMessage
public void sendMessage(org.apache.axis2.context.MessageContext msgCtx, String targetEPR, org.apache.axis2.transport.OutTransportInfo outTransportInfo) throws org.apache.axis2.AxisFault Performs the actual sending of the message.- Specified by:
sendMessagein classorg.apache.axis2.transport.base.AbstractTransportSender- Parameters:
msgCtx- the axis2 message context of the message to be senttargetEPR- the EPR for which the message is to be sentoutTransportInfo- the OutTransportInfo for the message- Throws:
org.apache.axis2.AxisFault- on error
-
sendUsingEPR
protected boolean sendUsingEPR(String targetEPR, String serviceName, quickfix.Message fixMessage, String srcSession, int counter, org.apache.axis2.context.MessageContext msgCtx) throws org.apache.axis2.AxisFault Sends a FIX message to the given EPR- Parameters:
targetEPR- the EPR to which the message is sent toserviceName- name of the service which processed the messagefixMessage- the FIX messagesrcSession- String uniquely identifying the incoming sessioncounter- application level sequence number of the messagemsgCtx- the Axis2 MessageContext for the message- Returns:
- boolean value indicating the result
- Throws:
org.apache.axis2.AxisFault- on error
-
logOutIncomingSession
public void logOutIncomingSession(quickfix.SessionID sessionID)
-