- LineHeaderInterceptor
- constructor
- _transform
- getRealHeaderCheck
- getCheckInfo
- getPreCheck
- getStrictCheck
- getMissingColumnCheck
- getMandatoryColumnCheck
- foundColumns
- getAdditionalColumnCheck
Extends Interceptor
This interceptor cares about the handling of the messages. It will add the hops and copies the messages
configendpoint
checkPropertyvalidate
Reads the stream data and split it into lines.
dataenccb
Creates a check which will match the future columns names to there real position
expectedHeaderThe expected headercaseSensitiveIs the header case sensitivefieldNamesThe fieldNames to use for each field.
Returns any fieldMap This maps the fieldNames to the position in the array.
Extracts the boolean value and the severity of a given check name from the checkProperty
checkPropertyThe checkProperty as defined in the schemafieldNameThe name of the field in the checkProperty
Returns any infoObject An object containing the boolean value and the severity
The pre check will be performed anyhow. It just checks that the content to check exists.
returns the Strict header check
expectedHeaderThe expected headercaseSensitiveseverity
Creates the missing column check
expectedHeaderThe expected headercaseSensitiveIs the header case sensitiveseverityThe severity if the check fails
Creates the mandatory column check. This is every time case sensitive as we used the associated column names.
mandatoryColumnsThe mandatory columns. BUT these are the associated fieldnames, not the original column namesseverityThe severity if the check fails
thecoluns found and matched.
Creates the additional column check. Additional columns not allowed
expectedHeaderThe expected headercaseSensitiveIs the header case sensitiveseverityThe severity if the check fails