Class ValidationAttributes

java.lang.Object
ch.nexsol.gateway.validation.ValidationAttributes

public final class ValidationAttributes extends Object
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 Details

    • VALIDATION_ATTRIBUTES_ATTR

      public static final String VALIDATION_ATTRIBUTES_ATTR
      Exchange attribute holding the validation outcome as a Map<String, String> ready to be audited. Read by the validation audit group.
      See Also:
    • REQUEST_VALID

      public static final String REQUEST_VALID
      Whether the request honoured the contract.
      See Also:
    • REQUEST_ERRORS

      public static final String REQUEST_ERRORS
      The ways the request broke the contract, joined by "; ".
      See Also:
    • RESPONSE_VALID

      public static final String RESPONSE_VALID
      Whether the response honoured the contract.
      See Also:
    • RESPONSE_ERRORS

      public static final String RESPONSE_ERRORS
      The ways the response broke the contract, joined by "; ".
      See Also:
    • OPERATION

      public static final String OPERATION
      The contract operation the exchange was validated against, as METHOD /path/{template}.
      See Also: