public class FixFlatMessage extends Object implements FixMessage
FixMessage
based on FlatMessage
.Constructor and Description |
---|
FixFlatMessage(byte[] rawFixMsg,
int length)
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(byte[] rawFixMsg,
int length)
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(byte[] rawFixMsg, int length)
FlatMessage
and initializes frequently used fields values.rawFixMsg
- raw FIX message in the tag=value formlength
- raw FIX message length in bytespublic void reset(byte[] rawFixMsg, int length)
FixMessage
reset
in interface FixMessage
rawFixMsg
- raw FIX message in the tag=value formlength
- raw FIX message length in bytespublic void validate(int inboundMsgValidFlags)
FixMessage
validate
in interface FixMessage
inboundMsgValidFlags
- validation flags MessageValidationFlags
public FixMessage copy()
FixMessage
FixMessage
.copy
in interface FixMessage
FixMessage
.public FlatMessage getFlatMessage()
FixMessage
FlatMessage
object.getFlatMessage
in interface FixMessage
FlatMessage
object.public Message getStructuredMessage(Version version)
FixMessage
Message
object created based on internal FlatMessage
object.getStructuredMessage
in interface FixMessage
version
- FIX versionMessage
object.public boolean isSessionLevel()
FixMessage
isSessionLevel
in interface FixMessage
public ValuePtr getMsgType()
FixMessage
getMsgType
in interface FixMessage
public byte getMsgTypeFirstByte()
FixMessage
getMsgTypeFirstByte
in interface FixMessage
public long getSeqNum()
FixMessage
getSeqNum
in interface FixMessage
public boolean isOriginal()
FixMessage
isOriginal
in interface FixMessage
public boolean compareBeginString(byte[] value)
FixMessage
compareBeginString
in interface FixMessage
value
- expected BeginString(8)public String getBeginString()
FixMessage
getBeginString
in interface FixMessage
public boolean hasSenderCompID()
FixMessage
hasSenderCompID
in interface FixMessage
public boolean compareSenderCompId(byte[] value)
FixMessage
compareSenderCompId
in interface FixMessage
value
- expected SenderCompID(49)public String getSenderCompID()
FixMessage
getSenderCompID
in interface FixMessage
public boolean hasTargetCompID()
FixMessage
hasTargetCompID
in interface FixMessage
public boolean compareTargetCompId(byte[] value)
FixMessage
compareTargetCompId
in interface FixMessage
value
- expected TargetCompID(56)public String getTargetCompID()
FixMessage
getTargetCompID
in interface FixMessage
public boolean getTestReqID(ValuePtr testReqId)
FixMessage
getTestReqID
in interface FixMessage
testReqId
- field value reference to be filledpublic boolean compareTestReqID(ValuePtr testReqId)
FixMessage
compareTestReqID
in interface FixMessage
testReqId
- expected TargetCompID(56)public boolean hasHeartBtInt()
FixMessage
hasHeartBtInt
in interface FixMessage
public int getHeartBtInt()
FixMessage
getHeartBtInt
in interface FixMessage
public boolean hasNextExpectedMsgSeqNum()
FixMessage
hasNextExpectedMsgSeqNum
in interface FixMessage
public long getNextExpectedMsgSeqNum()
FixMessage
getNextExpectedMsgSeqNum
in interface FixMessage
public boolean hasText()
FixMessage
hasText
in interface FixMessage
public String getText()
FixMessage
getText
in interface FixMessage
public boolean hasBeginSeqNo()
FixMessage
hasBeginSeqNo
in interface FixMessage
public long getBeginSeqNo()
FixMessage
getBeginSeqNo
in interface FixMessage
public boolean hasEndSeqNo()
FixMessage
hasEndSeqNo
in interface FixMessage
public long getEndSeqNo()
FixMessage
getEndSeqNo
in interface FixMessage
public boolean hasNewSeqNo()
FixMessage
hasNewSeqNo
in interface FixMessage
public long getNewSeqNo()
FixMessage
getNewSeqNo
in interface FixMessage
public boolean hasGapFillFlag()
FixMessage
hasGapFillFlag
in interface FixMessage
public boolean hasResetSeqNumFlag()
FixMessage
hasResetSeqNumFlag
in interface FixMessage
public Version getVersion()
FixMessage
Note: The engine must be initialized.
getVersion
in interface FixMessage
Copyright © 2005–2024 Onix Solutions. All rights reserved.