@CompileStatic class MetaDataConstant extends Object
Contains constants to be used as keys when constructing metadata for inbound/outbound messages.
For example, inbound channel (like the web) can send into domain various metadata, but domain must somehow find and minimally interpret them. Using shared constants for metadata's key names is a starting point.Type | Name and description |
---|---|
static String |
INBOUND_CHANNEL_NAME_KEY Key (as in Map key) to use for storing the name of the inbound channel from which request came in. |
static String |
INBOUND_CHANNEL_REQUEST_IDENTIFIER_KEY Key (as in Map key) to use for storing some identifier of the inbound channel. |
static String |
INBOUND_CHANNEL_REQUEST_LOCALE_KEY Key (as in Map key) to use for storing request's locale detected by the inbound channel. |
static String |
INBOUND_CHANNEL_TYPE_KEY Key (as in Map key) to use for storing the type of the inbound channel from which request came in. |
Constructor and description |
---|
MetaDataConstant() |
Key (as in Map key) to use for storing the name of the inbound channel from which request came in.
The values might be domain related, for example, something like "booking", "handling", etc.Key (as in Map key) to use for storing some identifier of the inbound channel.
The values might be something like the IP for web/rest channel, originating server IP and queue for message queueing channel, a topic for Kafka channel, etc.Key (as in Map key) to use for storing request's locale detected by the inbound channel.
Stored locale comes from and is detected by the inbound channel's specific means. For example, in the Spring MVC environment, request'sAccept-Language
header will be translated
into the locale of the current request.
Key (as in Map key) to use for storing the type of the inbound channel from which request came in.
The values might be something like "web"/"rest", "messaging" etc. or more specific like "guiFrontend", "webApiFrontend", "queuingMessaging", "kafkaMessaging" etc.Groovy Documentation