Class ContentTypeMatcherProcessor

java.lang.Object
org.qubership.integration.platform.engine.camel.processors.ContentTypeMatcherProcessor
All Implemented Interfaces:
org.apache.camel.Processor

@Component public class ContentTypeMatcherProcessor extends Object implements org.apache.camel.Processor
Processor perform value matching of Content-Type header from response to configured value of response schema validation. Received Content-Type header value should have the same directives as configured in Validation step, but may have different order.
    Example:
  • "application/json;model=individual;version=v1;charset=UTF-8" matched "application/json;charset=UTF-8;version=v1;model=individual"
  • "application/json;model=individual;version=v1;charset=UTF-8" not matched "application/json;charset=UTF-8" or "application/json"
  • Constructor Details

    • ContentTypeMatcherProcessor

      public ContentTypeMatcherProcessor()
  • Method Details

    • process

      public void process(org.apache.camel.Exchange exchange) throws Exception
      Specified by:
      process in interface org.apache.camel.Processor
      Throws:
      Exception