Class AbstractMappingKeyExtractor

  • All Implemented Interfaces:
    com.consol.citrus.endpoint.adapter.mapping.MappingKeyExtractor
    Direct Known Subclasses:
    HeaderMappingKeyExtractor

    public abstract class AbstractMappingKeyExtractor
    extends Object
    implements com.consol.citrus.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
    Author:
    Christoph Deppisch
    • Constructor Detail

      • AbstractMappingKeyExtractor

        public AbstractMappingKeyExtractor()
    • Method Detail

      • extractMappingKey

        public final String extractMappingKey​(com.consol.citrus.message.Message request)
        Specified by:
        extractMappingKey in interface com.consol.citrus.endpoint.adapter.mapping.MappingKeyExtractor
      • getMappingKey

        protected abstract String getMappingKey​(com.consol.citrus.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 -