diff --git a/ballerina/constants.bal b/ballerina/constants.bal index 1142b66..d134b45 100644 --- a/ballerina/constants.bal +++ b/ballerina/constants.bal @@ -125,23 +125,42 @@ public const int ENC_FLOAT_IEEE_REVERSED = 512; # Floating-point numbers are represented using the standard zSeries (System/390) floating-point format. public const int ENC_FLOAT_S390 = 768; -# Character data in the message is in the queue manager's character set. -public const int CCSI_Q_MGR = 0; +# Coded Character Set Identifiers - Appl. +public const int CCSI_APPL = -3; + +# ASCII codeset +public const int CCSI_ASCII = 850; + +# ISO standard ASCII codeset +public const int CCSI_ASCII_ISO = 819; + +# Coded Character Set Identifiers - As Published. +public const int CCSI_AS_PUBLISHED = -4; -# ASCII character set -public const int CHARSET_ASCII = 850; +# The CodedCharSetId of the data in the String field is defined by the CodedCharSetId field in the header structure +# that precedes the MQCFH structure, or by the CodedCharSetId field in the MQMD if the MQCFH is at the start of the message. +public const int CCSI_DEFAULT = 0; -# ISO standard ASCII character set -public const int CHARSET_ASCII_ISO = 819; +# The American EBCDIC codeset +public const int CCSI_EBCDIC = 37; + +# Coded Character Set Identifiers - Embedded. +public const int CCSI_EMBEDDED = -1; + +# Character data in the message is in the same character set as this structure. +public const int CCSI_INHERIT = -2; + +# Character data in the message is in the queue manager's character set. +public const int CCSI_Q_MGR = 0; -# The American EBCDIC character set -public const int CHARSET_EBCDIC = 37; +# Coded Character Set Identifiers - Undefined. +public const int CCSI_UNDEFINED = 0; -# Unicode character set -public const int CHARSET_UNICODE = 1200; +# Unicode codeset +public const int CCSI_UNICODE = 1200; -# UTF-8 character set -public const int CHARSET_UTF8 = 1208; +# UTF-8 codeset +public const int CCSI_UTF8 = 1208; const string DEFAULT_BLANK_VALUE = " "; diff --git a/ballerina/types.bal b/ballerina/types.bal index e14c4f5..a1ef694 100644 --- a/ballerina/types.bal +++ b/ballerina/types.bal @@ -23,7 +23,8 @@ public type OPEN_TOPIC_OPTION OPEN_AS_SUBSCRIPTION|OPEN_AS_PUBLICATION; public type Header MQRFH2|MQRFH|MQCIH|MQIIH; # The coded character set used in application message data. -public type MESSAGE_CHARSET CCSI_Q_MGR|CHARSET_ASCII|CHARSET_ASCII_ISO|CHARSET_EBCDIC|CHARSET_UNICODE|CHARSET_UTF8; +public type MESSAGE_CHARSET CCSI_APPL|CCSI_ASCII|CCSI_ASCII_ISO|CCSI_AS_PUBLISHED|CCSI_DEFAULT| + CCSI_EBCDIC|CCSI_EMBEDDED|CCSI_INHERIT|CCSI_Q_MGR|CCSI_UNDEFINED|CCSI_UNICODE|CCSI_UTF8; # The SSL Cipher Suite to be used for secure communication with the IBM MQ server. public type SslCipherSuite SSL_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA|SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256