Class AbstractValidationProcessor<T>

java.lang.Object
org.citrusframework.validation.AbstractValidationProcessor<T>
All Implemented Interfaces:
org.citrusframework.message.MessageProcessor, org.citrusframework.message.MessageTransformer, org.citrusframework.spi.ReferenceResolverAware, org.citrusframework.validation.GenericValidationProcessor<T>, org.citrusframework.validation.ValidationProcessor

public abstract class AbstractValidationProcessor<T> extends Object implements org.citrusframework.validation.ValidationProcessor, org.citrusframework.validation.GenericValidationProcessor<T>, org.citrusframework.spi.ReferenceResolverAware
Validation callback automatically extracts message payload and headers so we work with Java code for validation.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.citrusframework.message.MessageProcessor

    org.citrusframework.message.MessageProcessor.Builder<T extends org.citrusframework.message.MessageProcessor,B extends org.citrusframework.message.MessageProcessor.Builder<T,B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.citrusframework.spi.ReferenceResolver
    Bean reference resolver injected before validation callback is called

    Fields inherited from interface org.citrusframework.message.MessageProcessor

    logger, RESOURCE_PATH, TYPE_RESOLVER
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setReferenceResolver(org.citrusframework.spi.ReferenceResolver referenceResolver)
     
    void
    validate(org.citrusframework.message.Message message, org.citrusframework.context.TestContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.citrusframework.validation.GenericValidationProcessor

    validate

    Methods inherited from interface org.citrusframework.message.MessageProcessor

    transform

    Methods inherited from interface org.citrusframework.validation.ValidationProcessor

    process
  • Field Details

    • referenceResolver

      protected org.citrusframework.spi.ReferenceResolver referenceResolver
      Bean reference resolver injected before validation callback is called
  • Constructor Details

    • AbstractValidationProcessor

      public AbstractValidationProcessor()
  • Method Details

    • validate

      public void validate(org.citrusframework.message.Message message, org.citrusframework.context.TestContext context)
      Specified by:
      validate in interface org.citrusframework.validation.ValidationProcessor
    • setReferenceResolver

      public void setReferenceResolver(org.citrusframework.spi.ReferenceResolver referenceResolver)
      Specified by:
      setReferenceResolver in interface org.citrusframework.spi.ReferenceResolverAware