Class MessageHeaderVariableExtractor

java.lang.Object
org.citrusframework.variable.MessageHeaderVariableExtractor
All Implemented Interfaces:
org.citrusframework.message.MessageProcessor, org.citrusframework.message.MessageTransformer, org.citrusframework.variable.VariableExtractor

public class MessageHeaderVariableExtractor extends Object implements org.citrusframework.variable.VariableExtractor
Variable extractor reading message headers and saves them to new test variables.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Fluent builder.
  • Field Summary

    Fields inherited from interface org.citrusframework.variable.VariableExtractor

    logger, RESOURCE_PATH, TYPE_RESOLVER
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    extractVariables(org.citrusframework.message.Message message, org.citrusframework.context.TestContext context)
    Reads header information and saves new test variables.
    Gets the headerMappings.

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.citrusframework.message.MessageProcessor

    transform

    Methods inherited from interface org.citrusframework.variable.VariableExtractor

    process
  • Constructor Details

    • MessageHeaderVariableExtractor

      public MessageHeaderVariableExtractor()
  • Method Details

    • extractVariables

      public void extractVariables(org.citrusframework.message.Message message, org.citrusframework.context.TestContext context)
      Reads header information and saves new test variables.
      Specified by:
      extractVariables in interface org.citrusframework.variable.VariableExtractor
    • getHeaderMappings

      public Map<String,Object> getHeaderMappings()
      Gets the headerMappings.
      Returns:
      the headerMappings