public class FixFlatMessage extends Object implements FixMessage
FixMessage based on FlatMessage.| Constructor and Description |
|---|
FixFlatMessage(ByteBuffer rawFixMsg)
Parses raw message as
FlatMessage and initializes frequently used fields values. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareBeginString(byte[] value)
Returns true if the message contains BeginString(8) same as the specified value, false otherwise.
|
boolean |
compareSenderCompId(byte[] value)
Returns true if the message contains SenderCompID(49) same as the specified value, false otherwise.
|
boolean |
compareTargetCompId(byte[] value)
Returns true if the message contains TargetCompID(56) same as the specified value, false otherwise.
|
boolean |
compareTestReqID(ValuePtr testReqId)
Returns true if the message contains TestReqID(112) same as the specified value, false otherwise.
|
FixMessage |
copy()
Returns copy of the
FixMessage. |
long |
getBeginSeqNo()
Returns BeginSeqNo(7).
|
String |
getBeginString()
Returns BeginString(9)
|
long |
getEndSeqNo()
Returns EndSeqNo(16).
|
FlatMessage |
getFlatMessage()
Returns the
FlatMessage object. |
int |
getHeartBtInt()
Returns HeartBtInt(108).
|
ValuePtr |
getMsgType()
Returns MsgType(35).
|
byte |
getMsgTypeFirstByte()
Returns first byte of MsgType(35).
|
long |
getNewSeqNo()
Returns NewSeqNo(36).
|
long |
getNextExpectedMsgSeqNum()
Returns NextExpectedMsgSeqNum(789).
|
String |
getSenderCompID()
Returns SenderCompID(49).
|
long |
getSeqNum()
Returns MsgSeqNum(34).
|
Message |
getStructuredMessage(Version version)
Returns the
Message object created based on internal FlatMessage object. |
String |
getTargetCompID()
Returns TargetCompID(56).
|
boolean |
getTestReqID(ValuePtr testReqId)
Returns TestReqID(112).
|
String |
getText()
Returns Text(58).
|
Version |
getVersion()
Returns Fix version parsed from the message.
|
boolean |
hasBeginSeqNo()
Returns whether the message contains BeginSeqNo(7).
|
boolean |
hasEndSeqNo()
Returns whether the message contains EndSeqNo(16).
|
boolean |
hasGapFillFlag()
Returns whether the message contains GapFillFlag(123).
|
boolean |
hasHeartBtInt()
Returns whether the message contains HeartBtInt(108).
|
boolean |
hasNewSeqNo()
Returns whether the message contains NewSeqNo(36).
|
boolean |
hasNextExpectedMsgSeqNum()
Returns whether the message contains NextExpectedMsgSeqNum(789).
|
boolean |
hasResetSeqNumFlag()
Returns whether the message contains ResetSeqNumFlag(141).
|
boolean |
hasSenderCompID()
Returns whether the message contains SenderCompID(49).
|
boolean |
hasTargetCompID()
Returns whether the message contains TargetCompID(56).
|
boolean |
hasText()
Returns whether the message contains Text(58).
|
boolean |
isOriginal()
Returns whether the message is original or not.
|
boolean |
isSessionLevel()
Returns whether fix message is session level or not.
|
void |
reset(ByteBuffer rawFixMsg)
Resets the fix message with the given raw FIX message, allows to re-use internal data structures.
|
String |
toString() |
void |
validate(int inboundMsgValidFlags)
Validates the fix message according to the given validation flags.
|
public FixFlatMessage(ByteBuffer rawFixMsg)
FlatMessage and initializes frequently used fields values.rawFixMsg - raw FIX message in the tag=value formpublic void reset(ByteBuffer rawFixMsg)
FixMessagereset in interface FixMessagerawFixMsg - raw FIX message in the tag=value formpublic void validate(int inboundMsgValidFlags)
FixMessagevalidate in interface FixMessageinboundMsgValidFlags - validation flags MessageValidationFlagspublic FixMessage copy()
FixMessageFixMessage.copy in interface FixMessageFixMessage.public FlatMessage getFlatMessage()
FixMessageFlatMessage object.getFlatMessage in interface FixMessageFlatMessage object.public Message getStructuredMessage(Version version)
FixMessageMessage object created based on internal FlatMessage object.getStructuredMessage in interface FixMessageversion - FIX versionMessage object.public boolean isSessionLevel()
FixMessageisSessionLevel in interface FixMessagepublic ValuePtr getMsgType()
FixMessagegetMsgType in interface FixMessagepublic byte getMsgTypeFirstByte()
FixMessagegetMsgTypeFirstByte in interface FixMessagepublic long getSeqNum()
FixMessagegetSeqNum in interface FixMessagepublic boolean isOriginal()
FixMessageisOriginal in interface FixMessagepublic boolean compareBeginString(byte[] value)
FixMessagecompareBeginString in interface FixMessagevalue - expected BeginString(8)public String getBeginString()
FixMessagegetBeginString in interface FixMessagepublic boolean hasSenderCompID()
FixMessagehasSenderCompID in interface FixMessagepublic boolean compareSenderCompId(byte[] value)
FixMessagecompareSenderCompId in interface FixMessagevalue - expected SenderCompID(49)public String getSenderCompID()
FixMessagegetSenderCompID in interface FixMessagepublic boolean hasTargetCompID()
FixMessagehasTargetCompID in interface FixMessagepublic boolean compareTargetCompId(byte[] value)
FixMessagecompareTargetCompId in interface FixMessagevalue - expected TargetCompID(56)public String getTargetCompID()
FixMessagegetTargetCompID in interface FixMessagepublic boolean getTestReqID(ValuePtr testReqId)
FixMessagegetTestReqID in interface FixMessagetestReqId - field value reference to be filledpublic boolean compareTestReqID(ValuePtr testReqId)
FixMessagecompareTestReqID in interface FixMessagetestReqId - expected TargetCompID(56)public boolean hasHeartBtInt()
FixMessagehasHeartBtInt in interface FixMessagepublic int getHeartBtInt()
FixMessagegetHeartBtInt in interface FixMessagepublic boolean hasNextExpectedMsgSeqNum()
FixMessagehasNextExpectedMsgSeqNum in interface FixMessagepublic long getNextExpectedMsgSeqNum()
FixMessagegetNextExpectedMsgSeqNum in interface FixMessagepublic boolean hasText()
FixMessagehasText in interface FixMessagepublic String getText()
FixMessagegetText in interface FixMessagepublic boolean hasBeginSeqNo()
FixMessagehasBeginSeqNo in interface FixMessagepublic long getBeginSeqNo()
FixMessagegetBeginSeqNo in interface FixMessagepublic boolean hasEndSeqNo()
FixMessagehasEndSeqNo in interface FixMessagepublic long getEndSeqNo()
FixMessagegetEndSeqNo in interface FixMessagepublic boolean hasNewSeqNo()
FixMessagehasNewSeqNo in interface FixMessagepublic long getNewSeqNo()
FixMessagegetNewSeqNo in interface FixMessagepublic boolean hasGapFillFlag()
FixMessagehasGapFillFlag in interface FixMessagepublic boolean hasResetSeqNumFlag()
FixMessagehasResetSeqNumFlag in interface FixMessagepublic Version getVersion()
FixMessageNote: The engine must be initialized.
getVersion in interface FixMessageCopyright © 2005–2025 Onix Solutions. All rights reserved.