Path: redb-route/redb.Route.IbmMq/IbmMqHeaders.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.IbmMq/IbmMqHeaders.cs
----
namespace redb.Route.IbmMq;
///
/// Well-known header constants used by the IBM MQ component.
/// Headers prefixed with redbIbmMq. carry broker metadata on incoming messages.
///
public static class IbmMqHeaders
{
/// Common prefix for all IBM MQ component headers.
public const string Prefix = "redbIbmMq.";
// ── MQMD fields set on the In message by the consumer ────────────
/// Queue or topic the message was received from.
public const string Destination = "redbIbmMq.Destination";
/// Queue manager name.
public const string QueueManager = "redbIbmMq.QueueManager";
/// MQMD MsgId (hex string).
public const string MsgId = "redbIbmMq.MsgId";
/// MQMD CorrelId (hex string).
public const string CorrelId = "redbIbmMq.CorrelId";
/// MQMD Format (e.g. MQFMT_STRING, MQFMT_NONE, MQHRF2).
public const string Format = "redbIbmMq.Format";
/// MQMD Coded Character Set ID.
public const string CCSID = "redbIbmMq.CCSID";
/// MQMD Encoding.
public const string Encoding = "redbIbmMq.Encoding";
/// MQMD Persistence.
public const string Persistence = "redbIbmMq.Persistence";
/// MQMD Priority.
public const string Priority = "redbIbmMq.Priority";
/// MQMD Expiry (tenths of a second, -1 = unlimited).
public const string Expiry = "redbIbmMq.Expiry";
/// MQMD ReplyToQ.
public const string ReplyToQueue = "redbIbmMq.ReplyToQueue";
/// MQMD ReplyToQMgr.
public const string ReplyToQueueManager = "redbIbmMq.ReplyToQueueManager";
/// MQMD MsgType (Datagram, Request, Reply, Report).
public const string MsgType = "redbIbmMq.MsgType";
/// MQMD PutApplName.
public const string PutApplName = "redbIbmMq.PutApplName";
/// MQMD PutApplType.
public const string PutApplType = "redbIbmMq.PutApplType";
/// MQMD GroupId (hex string).
public const string GroupId = "redbIbmMq.GroupId";
/// MQMD MsgSeqNumber within group.
public const string MsgSeqNumber = "redbIbmMq.MsgSeqNumber";
/// MQMD Feedback code.
public const string Feedback = "redbIbmMq.Feedback";
/// MQMD Report options.
public const string ReportOptions = "redbIbmMq.ReportOptions";
/// MQMD UserIdentifier.
public const string UserIdentifier = "redbIbmMq.UserIdentifier";
/// MQMD BackoutCount.
public const string BackoutCount = "redbIbmMq.BackoutCount";
/// MQMD PutDateTime.
public const string PutDateTime = "redbIbmMq.PutDateTime";
// ── Internal property carrying the user-header catalogue ────────────
///
/// Name of the MQ message property that carries all user headers as a single JSON object.
///
/// Bundling into one property is necessary because MQ property names forbid hyphens, so HTTP-style
/// header names (X-Custom-Id) can't be individual properties. The name is unqualified
/// (no dotted folder prefix) so it lands in the JMS usr folder — the standard, interoperable
/// user-property location that both the IBM.WMQ (poll) and IBM.XMS (listener) clients, and any other
/// JMS client, read and write. (A dotted name would create a custom MQRFH2 folder that JMS clients,
/// including XMS, do not surface as user properties.)
///
///
internal const string HeaderCatalogue = "redbIbmMqHeaders";
/// Returns true if the header key belongs to the IBM MQ component.
public static bool IsRedbHeader(string key) =>
key.StartsWith(Prefix, StringComparison.OrdinalIgnoreCase);
}