Class AbstractMappingKeyExtractor

java.lang.Object
org.citrusframework.endpoint.adapter.mapping.AbstractMappingKeyExtractor
All Implemented Interfaces:
MappingKeyExtractor
Direct Known Subclasses:
HeaderMappingKeyExtractor

public abstract class AbstractMappingKeyExtractor extends Object implements MappingKeyExtractor
Abstract mapping key extractor adds common mapping prefix and suffix added to evaluated mapping key. Subclasses do evaluate mapping key from incoming request message and optional prefix and/or suffix are automatically added to resulting mapping key.
Since:
1.4
  • Constructor Details

    • AbstractMappingKeyExtractor

      public AbstractMappingKeyExtractor()
  • Method Details

    • extractMappingKey

      public final String extractMappingKey(Message request)
      Specified by:
      extractMappingKey in interface MappingKeyExtractor
    • getMappingKey

      protected abstract String getMappingKey(Message request)
      Provides mapping key from incoming request message. Subclasses must implement.
      Parameters:
      request -
      Returns:
    • setMappingKeyPrefix

      public void setMappingKeyPrefix(String mappingKeyPrefix)
      Sets the static mapping key prefix automatically added to extracted mapping key.
      Parameters:
      mappingKeyPrefix -
    • setMappingKeySuffix

      public void setMappingKeySuffix(String mappingKeySuffix)
      Sets the static mapping key suffix automatically added to extracted mapping key.
      Parameters:
      mappingKeySuffix -