Package com.github.hypfvieh.util
Klasse SimpleFixMessageBuilder
java.lang.Object
com.github.hypfvieh.util.SimpleFixMessageBuilder
Builder to create a FIX message without using any proprietary API.
Handles header and trailer tags (including header hops) to create a properly sorted message.
Does not support dictionaries, so be careful when dealing with repeating groups.
- Seit:
- 1.0.6 - 2019-02-22
- Autor:
- hypfvieh
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuild()Builds the new message and returns it as String.createBasicMessage(String _fixVersion, String _msgType) Creates a basic FIX message containing only dummy header and trailer with the specified FIX version and message type.setUtcTimestamp(int _tag) setUtcTimestamp(int _tag, ZonedDateTime _zonedDateTime) Set/add tag value to FIX message to be created.Set/add tag value to FIX message to be created.
-
Konstruktordetails
-
SimpleFixMessageBuilder
public SimpleFixMessageBuilder()
-
-
Methodendetails
-
setValue
Set/add tag value to FIX message to be created. Will overwrite existing tags depending on the provided boolean _overwrite.- Parameter:
_tag- tag number_value- value_overwrite- true to overwrite existing tag, false otherwise- Gibt zurück:
- this
-
setValue
Set/add tag value to FIX message to be created. Will always overwrite existing tags, do not use this for creating repeating group entries!- Parameter:
_tag- tag number_value- value- Gibt zurück:
- this
-
setUtcTimestamp
-
setUtcTimestamp
-
createBasicMessage
Creates a basic FIX message containing only dummy header and trailer with the specified FIX version and message type.- Parameter:
_fixVersion- FIX version to use (null is not allowed)_msgType- message type to set (null is not allowed)- Gibt zurück:
- this
-
build
Builds the new message and returns it as String.- Gibt zurück:
- String, maybe empty, never null
-