public class MessageFactory extends Object implements MessageFactory
| Constructor and Description |
|---|
MessageFactory() |
| Modifier and Type | Method and Description |
|---|---|
Message |
create(String beginString,
String msgType)
Creates a message for a specified type and FIX version
|
Group |
create(String beginString,
String msgType,
int correspondingFieldID)
Creates a group for the specified parent message type and
for the fields with the corresponding field ID
Example: to create a
MarketDataRequest.NoMDEntryTypes
you need to call
create(MsgType.MARKET_DATA_REQUEST, NoMDEntryTypes.FIELD)
Function returns null if the group cannot be created. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic Message create(String beginString, String msgType)
MessageFactorycreate in interface MessageFactorybeginString - the FIX version (for example, "FIX.4.2")msgType - the FIX message type (for example, "D" for an order)public Group create(String beginString, String msgType, int correspondingFieldID)
MessageFactoryMarketDataRequest.NoMDEntryTypes
you need to call
create(MsgType.MARKET_DATA_REQUEST, NoMDEntryTypes.FIELD)
Function returns null if the group cannot be created.create in interface MessageFactorybeginString - the FIX version (for example, "FIX.4.2")msgType - Message type of the enclosing messagecorrespondingFieldID - the fieldID of the field in the groupCopyright © 2021. All rights reserved.