com.btobits.fixengine
Class FIXMessageFactory

java.lang.Object
  extended by com.btobits.fixengine.FIXMessageFactory

public class FIXMessageFactory
extends Object


Constructor Summary
FIXMessageFactory()
           
FIXMessageFactory(FIXVersion fixVersion)
           
FIXMessageFactory(FIXVersion fixVersion, boolean enumeratedValueValidation, boolean isFieldAllowedInMessageValidation, boolean valueDatatypeValidation)
           
FIXMessageFactory(FIXVersion fixVersion, boolean enumeratedValueValidation, boolean isFieldAllowedInMessageValidation, boolean valueDatatypeValidation, boolean requiredFieldValidation, boolean fieldOrderValidation, boolean dublicatedFieldValidation)
           
 
Method Summary
 FIXMessage createBusinessRejectMessage(StdHdrParamStruct headerParams, int refSeqNum, String refMsgType, int businessRejectRefID, int businessRejectReason, String text)
           
 FIXMessage createFIXMessage(byte[] msg)
           
 FIXMessage createFIXMessage(byte[] msg, boolean checkGarbled)
           
 FIXMessage createFIXMessageByFIXBlock(byte[] msg, FIXVersion fixVersion)
           
 FIXMessage createFIXMessageByFIXBlock(byte[] msg, FIXVersion fixVersion, boolean isValidate)
           
 FIXMessage createGapFillMessage(int seqNum, int newSeqNum)
           
 FIXMessage createGapFillMessage(StdHdrParamStruct headerParams, int seqNum, int newSeqNum)
           
 FIXMessage createHeartBeatMessage(StdHdrParamStruct headerParams)
           
 FIXMessage createHeartBeatMessage(StdHdrParamStruct headerParams, String testReqId)
           
 FIXMessage createHeartBeatMessage(String testReqId)
           
 FIXMessage createLogonMessage(boolean resetSequence)
           
 FIXMessage createLogonMessage(boolean resetSequence, long heartBtInt)
           
 FIXMessage createLogonMessage(boolean resetSequence, long heartBtInt, int encryptionMode)
           
 FIXMessage createLogonMessage(boolean resetSequence, long heartBtInt, int encryptionMode, byte[] rawData)
           
 FIXMessage createLogonMessage(boolean resetSequence, long heartBtInt, int maxMessageSize, List<SupportedMsgTypeInfo> supportedMsgTypesList)
           
 FIXMessage createLogonMessage(StdHdrParamStruct shParam, LogonParamStruct lParam)
           
 FIXMessage createLogoutMessage(StdHdrParamStruct headerParams, String message)
           
 FIXMessage createLogoutMessage(String message)
           
 List<FIXField> createMessageHeader(String msgType)
           
 List<FIXField> createMessageHeader(String msgType, StdHdrParamStruct shParam)
           
 FIXMessage createRejectMessage(int msgSequence, int tagId, String msgType, int rejReason)
           
 FIXMessage createRejectMessage(int msgSequence, int tagId, String msgType, int rejReason, String text)
           
 FIXMessage createRejectMessage(int msgSequence, String text)
           
 FIXMessage createRejectMessage(StdHdrParamStruct headerParams, int msgSequence, int tagId, String msgType, int rejReason)
           
 FIXMessage createRejectMessage(StdHdrParamStruct headerParams, int msgSequence, int tagId, String msgType, int rejReason, String text)
           
 FIXMessage createRejectMessage(StdHdrParamStruct headerParams, int msgSequence, String text)
           
 FIXMessage createResendRequestMessage(int first, int last)
           
 FIXMessage createResendRequestMessage(StdHdrParamStruct headerParams, boolean toSetPossDup, int first, int last)
           
 FIXMessage createResendRequestMessage(StdHdrParamStruct headerParams, int first, int last)
           
 FIXMessage createSequenceResetMessage(int newSeqNum)
           
 FIXMessage createSequenceResetMessage(StdHdrParamStruct headerParams, int newSeqNum)
           
 FIXMessage createTestRequestMessage()
           
 FIXMessage createTestRequestMessage(StdHdrParamStruct headerParams)
           
 FIXMessage createTestRequestMessage(StdHdrParamStruct headerParams, String s)
           
 FIXMessage createTestRequestMessage(String s)
           
 FIXField[] createUnvalidatedFIXList(byte[] msg)
           
 FIXField[] createValidatedFIXList(byte[] msg)
           
 FIXVersion getFIXVersion()
           
 boolean isDublicatedFieldValidation()
           
 boolean isEnumeratedValueValidation()
           
 boolean isFieldAllowedInMessageValidation()
           
 boolean isFieldOrderValidation()
           
 boolean isRequiredFieldValidation()
           
 boolean isValueDatatypeValidation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIXMessageFactory

public FIXMessageFactory()

FIXMessageFactory

public FIXMessageFactory(FIXVersion fixVersion)

FIXMessageFactory

public FIXMessageFactory(FIXVersion fixVersion,
                         boolean enumeratedValueValidation,
                         boolean isFieldAllowedInMessageValidation,
                         boolean valueDatatypeValidation)

FIXMessageFactory

public FIXMessageFactory(FIXVersion fixVersion,
                         boolean enumeratedValueValidation,
                         boolean isFieldAllowedInMessageValidation,
                         boolean valueDatatypeValidation,
                         boolean requiredFieldValidation,
                         boolean fieldOrderValidation,
                         boolean dublicatedFieldValidation)
Method Detail

getFIXVersion

public FIXVersion getFIXVersion()

isEnumeratedValueValidation

public boolean isEnumeratedValueValidation()

isFieldAllowedInMessageValidation

public boolean isFieldAllowedInMessageValidation()

isValueDatatypeValidation

public boolean isValueDatatypeValidation()

isRequiredFieldValidation

public boolean isRequiredFieldValidation()

isFieldOrderValidation

public boolean isFieldOrderValidation()

isDublicatedFieldValidation

public boolean isDublicatedFieldValidation()

createValidatedFIXList

public FIXField[] createValidatedFIXList(byte[] msg)
                                  throws FIXMessageException
Throws:
FIXMessageException

createUnvalidatedFIXList

public FIXField[] createUnvalidatedFIXList(byte[] msg)
                                    throws FIXMessageException
Throws:
FIXMessageException

createFIXMessage

public FIXMessage createFIXMessage(byte[] msg)
                            throws FIXMessageException
Throws:
FIXMessageException

createFIXMessage

public FIXMessage createFIXMessage(byte[] msg,
                                   boolean checkGarbled)
                            throws FIXMessageException
Throws:
FIXMessageException

createGapFillMessage

public FIXMessage createGapFillMessage(int seqNum,
                                       int newSeqNum)
                                throws FIXMessageException
Throws:
FIXMessageException

createGapFillMessage

public FIXMessage createGapFillMessage(StdHdrParamStruct headerParams,
                                       int seqNum,
                                       int newSeqNum)
                                throws FIXMessageException
Throws:
FIXMessageException

createHeartBeatMessage

public FIXMessage createHeartBeatMessage(StdHdrParamStruct headerParams,
                                         String testReqId)
                                  throws FIXMessageException
Throws:
FIXMessageException

createHeartBeatMessage

public FIXMessage createHeartBeatMessage(StdHdrParamStruct headerParams)
                                  throws FIXMessageException
Throws:
FIXMessageException

createHeartBeatMessage

public FIXMessage createHeartBeatMessage(String testReqId)
                                  throws FIXMessageException
Throws:
FIXMessageException

createLogonMessage

public FIXMessage createLogonMessage(StdHdrParamStruct shParam,
                                     LogonParamStruct lParam)
                              throws FIXMessageException
Throws:
FIXMessageException

createLogonMessage

public FIXMessage createLogonMessage(boolean resetSequence)
                              throws FIXMessageException
Throws:
FIXMessageException

createLogonMessage

public FIXMessage createLogonMessage(boolean resetSequence,
                                     long heartBtInt)
                              throws FIXMessageException
Throws:
FIXMessageException

createLogonMessage

public FIXMessage createLogonMessage(boolean resetSequence,
                                     long heartBtInt,
                                     int encryptionMode)
                              throws FIXMessageException
Throws:
FIXMessageException

createLogonMessage

public FIXMessage createLogonMessage(boolean resetSequence,
                                     long heartBtInt,
                                     int encryptionMode,
                                     byte[] rawData)
                              throws FIXMessageException
Throws:
FIXMessageException

createLogonMessage

public FIXMessage createLogonMessage(boolean resetSequence,
                                     long heartBtInt,
                                     int maxMessageSize,
                                     List<SupportedMsgTypeInfo> supportedMsgTypesList)
                              throws FIXMessageException
Throws:
FIXMessageException

createLogoutMessage

public FIXMessage createLogoutMessage(StdHdrParamStruct headerParams,
                                      String message)
                               throws FIXMessageException
Throws:
FIXMessageException

createLogoutMessage

public FIXMessage createLogoutMessage(String message)

createMessageHeader

public List<FIXField> createMessageHeader(String msgType)
                                   throws FIXMessageException
Throws:
FIXMessageException

createMessageHeader

public List<FIXField> createMessageHeader(String msgType,
                                          StdHdrParamStruct shParam)
                                   throws FIXMessageException
Throws:
FIXMessageException

createRejectMessage

public FIXMessage createRejectMessage(int msgSequence,
                                      int tagId,
                                      String msgType,
                                      int rejReason)
                               throws FIXMessageException
Throws:
FIXMessageException

createRejectMessage

public FIXMessage createRejectMessage(int msgSequence,
                                      int tagId,
                                      String msgType,
                                      int rejReason,
                                      String text)
                               throws FIXMessageException
Throws:
FIXMessageException

createRejectMessage

public FIXMessage createRejectMessage(int msgSequence,
                                      String text)
                               throws FIXMessageException
Throws:
FIXMessageException

createRejectMessage

public FIXMessage createRejectMessage(StdHdrParamStruct headerParams,
                                      int msgSequence,
                                      int tagId,
                                      String msgType,
                                      int rejReason)
                               throws FIXMessageException
Throws:
FIXMessageException

createRejectMessage

public FIXMessage createRejectMessage(StdHdrParamStruct headerParams,
                                      int msgSequence,
                                      int tagId,
                                      String msgType,
                                      int rejReason,
                                      String text)
                               throws FIXMessageException
Throws:
FIXMessageException

createRejectMessage

public FIXMessage createRejectMessage(StdHdrParamStruct headerParams,
                                      int msgSequence,
                                      String text)
                               throws FIXMessageException
Throws:
FIXMessageException

createBusinessRejectMessage

public FIXMessage createBusinessRejectMessage(StdHdrParamStruct headerParams,
                                              int refSeqNum,
                                              String refMsgType,
                                              int businessRejectRefID,
                                              int businessRejectReason,
                                              String text)
                                       throws FIXMessageException
Throws:
FIXMessageException

createResendRequestMessage

public FIXMessage createResendRequestMessage(int first,
                                             int last)
                                      throws FIXMessageException
Throws:
FIXMessageException

createResendRequestMessage

public FIXMessage createResendRequestMessage(StdHdrParamStruct headerParams,
                                             int first,
                                             int last)
                                      throws FIXMessageException
Throws:
FIXMessageException

createResendRequestMessage

public FIXMessage createResendRequestMessage(StdHdrParamStruct headerParams,
                                             boolean toSetPossDup,
                                             int first,
                                             int last)
                                      throws FIXMessageException
Throws:
FIXMessageException

createSequenceResetMessage

public FIXMessage createSequenceResetMessage(int newSeqNum)
                                      throws FIXMessageException
Throws:
FIXMessageException

createSequenceResetMessage

public FIXMessage createSequenceResetMessage(StdHdrParamStruct headerParams,
                                             int newSeqNum)
                                      throws FIXMessageException
Throws:
FIXMessageException

createTestRequestMessage

public FIXMessage createTestRequestMessage()
                                    throws FIXMessageException
Throws:
FIXMessageException

createTestRequestMessage

public FIXMessage createTestRequestMessage(StdHdrParamStruct headerParams)
                                    throws FIXMessageException
Throws:
FIXMessageException

createTestRequestMessage

public FIXMessage createTestRequestMessage(StdHdrParamStruct headerParams,
                                           String s)
                                    throws FIXMessageException
Throws:
FIXMessageException

createTestRequestMessage

public FIXMessage createTestRequestMessage(String s)
                                    throws FIXMessageException
Throws:
FIXMessageException

createFIXMessageByFIXBlock

public FIXMessage createFIXMessageByFIXBlock(byte[] msg,
                                             FIXVersion fixVersion)
                                      throws FIXMessageException
Throws:
FIXMessageException

createFIXMessageByFIXBlock

public FIXMessage createFIXMessageByFIXBlock(byte[] msg,
                                             FIXVersion fixVersion,
                                             boolean isValidate)
                                      throws FIXMessageException
Throws:
FIXMessageException


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.