Class ValidationAttributes
java.lang.Object
ch.nexsol.gateway.validation.ValidationAttributes
The exchange attribute the validation outcome is published under, and the names it is
audited with.
The filter never talks to the auditing plugin: it only stamps the outcome on the
exchange, and the validation audit group picks it up when both plugins are
present. That keeps this module free of any dependency towards the audit one, at the
cost of one string constant declared on both sides — the value of
VALIDATION_ATTRIBUTES_ATTR is what the two agree on and must not change
without changing it in ch.nexsol.gateway.audit.AuditEventFactory too.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe contract operation the exchange was validated against, asMETHOD /path/{template}.static final StringThe ways the request broke the contract, joined by"; ".static final StringWhether the request honoured the contract.static final StringThe ways the response broke the contract, joined by"; ".static final StringWhether the response honoured the contract.static final StringExchange attribute holding the validation outcome as aMap<String, String>ready to be audited. -
Method Summary
-
Field Details
-
VALIDATION_ATTRIBUTES_ATTR
Exchange attribute holding the validation outcome as aMap<String, String>ready to be audited. Read by thevalidationaudit group.- See Also:
-
REQUEST_VALID
-
REQUEST_ERRORS
The ways the request broke the contract, joined by"; ".- See Also:
-
RESPONSE_VALID
-
RESPONSE_ERRORS
The ways the response broke the contract, joined by"; ".- See Also:
-
OPERATION
The contract operation the exchange was validated against, asMETHOD /path/{template}.- See Also:
-