public class PreparedMessageUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BODYLENGTH_FIELD_DEFAULT_MAX |
static int |
BODYLENGTH_FIELD_LENGTH |
static byte[] |
EMPTY_BYTES |
protected static Log |
log |
static int |
SEQNUM_FIELD_LENGTH |
Constructor and Description |
---|
PreparedMessageUtil(SessionParameters sessionParameters)
Default constructor with SessionParameters object.
|
Modifier and Type | Method and Description |
---|---|
static int |
getBytesLength(long num)
returns size of serialized long in bytes
|
FIXFieldList |
prepareMessage(byte[] msgType,
MessageStructure userStructure)
Builds FIXFieldList object with specified type, message structure and prefilled header information
|
FIXFieldList |
prepareMessage(byte[] msgType,
MessageStructure userStructure,
boolean fromPool)
Builds FIXFieldList object with specified type, message structure and prefilled header information
|
FIXFieldList |
prepareMessage(FIXFieldList template,
byte[] msgType,
MessageStructure userStructure) |
FIXFieldList |
prepareMessage(FIXFieldList template,
byte[] msgType,
MessageStructure userStructure,
boolean fromPool)
Builds FIXFieldList object from exist template with specified message type, message structure
and prefilled header and trailer.
|
FIXFieldList |
prepareMessage(FIXFieldList message,
MessageStructure userStructure)
Builds FIXFieldList object from exist template.
|
FIXFieldList |
prepareMessage(FIXFieldList message,
MessageStructure userStructure,
boolean fromPool)
Builds FIXFieldList object from exist template.
|
FIXFieldList |
prepareMessage(FIXFieldList template,
String msgType,
MessageStructure userStructure)
Builds FIXFieldList object from exist template with specified message structure and prefilled
header and trailer.
|
FIXFieldList |
prepareMessage(FIXFieldList template,
String msgType,
MessageStructure userStructure,
boolean fromPool)
Builds FIXFieldList object from exist template with specified message structure and prefilled
header and trailer.
|
FIXFieldList |
prepareMessage(String msgTypeStr,
MessageStructure userStructure)
Builds FIXFieldList object with specified type, message structure and prefilled header information
|
FIXFieldList |
prepareMessage(String msgTypeStr,
MessageStructure userStructure,
boolean fromPool)
Builds FIXFieldList object with specified type, message structure and prefilled header information
|
FIXFieldList |
prepareMessageFromString(byte[] message,
byte[] type,
MessageStructure structure)
Builds FIXFieldList object from String object.
|
FIXFieldList |
prepareMessageFromString(byte[] message,
byte[] type,
MessageStructure structure,
boolean fromPool)
Builds FIXFieldList object from String object.
|
FIXFieldList |
prepareMessageFromString(byte[] message,
MessageStructure structure)
Builds FIXFieldList object from String object.
|
FIXFieldList |
prepareMessageFromString(byte[] message,
MessageStructure structure,
boolean fromPool)
Builds FIXFieldList object from String object.
|
FIXFieldList |
prepareMessageFromString(byte[] message,
String type,
MessageStructure structure)
Builds FIXFieldList object from String object.
|
FIXFieldList |
prepareMessageFromString(byte[] message,
String type,
MessageStructure structure,
boolean fromPool)
Builds FIXFieldList object from String object.
|
public static final byte[] EMPTY_BYTES
public static final int BODYLENGTH_FIELD_LENGTH
public static final int BODYLENGTH_FIELD_DEFAULT_MAX
public static final int SEQNUM_FIELD_LENGTH
protected static final Log log
public PreparedMessageUtil(SessionParameters sessionParameters)
sessionParameters
- SessionParameters objectpublic FIXFieldList prepareMessage(FIXFieldList message, MessageStructure userStructure) throws PreparedMessageException
message
- userStructure
- PreparedMessageException
public FIXFieldList prepareMessage(FIXFieldList message, MessageStructure userStructure, boolean fromPool) throws PreparedMessageException
message
- userStructure
- PreparedMessageException
public FIXFieldList prepareMessage(String msgTypeStr, MessageStructure userStructure) throws PreparedMessageException
msgTypeStr
- message typeuserStructure
- message structurePreparedMessageException
public FIXFieldList prepareMessage(String msgTypeStr, MessageStructure userStructure, boolean fromPool) throws PreparedMessageException
msgTypeStr
- message typeuserStructure
- message structurePreparedMessageException
public FIXFieldList prepareMessage(byte[] msgType, MessageStructure userStructure) throws PreparedMessageException
msgType
- message typeuserStructure
- message structurePreparedMessageException
public FIXFieldList prepareMessage(byte[] msgType, MessageStructure userStructure, boolean fromPool) throws PreparedMessageException
msgType
- message typeuserStructure
- message structurePreparedMessageException
public FIXFieldList prepareMessage(FIXFieldList template, String msgType, MessageStructure userStructure) throws PreparedMessageException
template
- msgType
- userStructure
- PreparedMessageException
public FIXFieldList prepareMessage(FIXFieldList template, String msgType, MessageStructure userStructure, boolean fromPool) throws PreparedMessageException
template
- msgType
- userStructure
- PreparedMessageException
public FIXFieldList prepareMessage(FIXFieldList template, byte[] msgType, MessageStructure userStructure) throws PreparedMessageException
PreparedMessageException
public FIXFieldList prepareMessage(FIXFieldList template, byte[] msgType, MessageStructure userStructure, boolean fromPool) throws PreparedMessageException
template
- FIXFieldList objectuserStructure
- template structuremsgType
- type of the templatePreparedMessageException
- exceptionpublic FIXFieldList prepareMessageFromString(byte[] message, MessageStructure structure) throws PreparedMessageException
message
- structure
- PreparedMessageException
public FIXFieldList prepareMessageFromString(byte[] message, MessageStructure structure, boolean fromPool) throws PreparedMessageException
message
- structure
- PreparedMessageException
public FIXFieldList prepareMessageFromString(byte[] message, String type, MessageStructure structure) throws PreparedMessageException
message
- message stringstructure
- message structure objecttype
- message typePreparedMessageException
- exceptionpublic FIXFieldList prepareMessageFromString(byte[] message, String type, MessageStructure structure, boolean fromPool) throws PreparedMessageException
message
- message stringstructure
- message structure objecttype
- message typePreparedMessageException
- exceptionpublic FIXFieldList prepareMessageFromString(byte[] message, byte[] type, MessageStructure structure) throws PreparedMessageException
message
- type
- structure
- PreparedMessageException
public FIXFieldList prepareMessageFromString(byte[] message, byte[] type, MessageStructure structure, boolean fromPool) throws PreparedMessageException
message
- type
- structure
- PreparedMessageException
public static int getBytesLength(long num)
num
- numberCopyright © 2000–2022 EPAM Systems. All rights reserved.