Class AbstractMappingKeyExtractor

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

public abstract class AbstractMappingKeyExtractor extends Object implements org.citrusframework.endpoint.adapter.mapping.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(org.citrusframework.message.Message request)
      Specified by:
      extractMappingKey in interface org.citrusframework.endpoint.adapter.mapping.MappingKeyExtractor
    • getMappingKey

      protected abstract String getMappingKey(org.citrusframework.message.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 -