Extracting Fields

Each Response Generator handler defines the fields that it extracts from the incoming message. The values of these fields, either the raw value and type or a conversion, are used to examine the message. This conversion is performed by the FieldValueMapper of the dynamic message mapper.

Field Extraction Properties describes the configuration properties available when extracting fields:

Table 1. Field Extraction Properties
Properties Description Example Value
responseGenerator.handlers.handler_name.fields.field_name.path The path at which the field value is read, in the format as used by the dynamic message mapper field mappings.
Important: This path must represent a single value in the message. It must not be a part of a repeating structure where more than one value might be extracted.
ChargingDataRequest.
sMSChargingInformation.userEquipmentInfo
responseGenerator.handlers.handler_name.fields.field_name.type The data type to map to, such as integer. By default, all values are mapped to strings. Both fully qualified java types and aliases are supported. integer
responseGenerator.handlers.handler_name.fields.field_name.mapperName The name of a preconfigured FieldValueMapper.
Note: The mapperName and mapperClass properties are mutually exclusive.
dayOfWeek
responseGenerator.handlers.handler_name.fields.field_name.mapperClass The fully qualified class name of a FieldValueMapper.
Note: The mapperName and mapperClass properties are mutually exclusive.
com.matrixx.mapping.field.
RegexMapBasedFieldValueMapper
responseGenerator.handlers.handler_name.fields.field_name.mapperParameters Parameters used when initializing the mapperClass. These typically represent setters on this class of type string. The exception to this is for the map and regex map.
Note: Only specify the mapperParamters property when the mapperClass property is set.
mapperParameters:
  "^ABC[0-9]{3}$": Consumer
  "^XYZ[0-9]{3}$": IOT
  "^[a-z,A-Z,0-9]*$": Unknown

Data Types and Aliases list the data types and corresponding aliases that can be specified with the responseGenerator.handlers.handler_name.fields.field_name.type property:

Table 2. Data Types and Aliases
DataType Alias(es)
java.lang.String string
java.lang.Integer int or integer
java.lang.Long long
java.lang.Float float
java.lang.Double double
java.time.instant instant
java.util.Date date
java.lang.Boolean bool or boolean