Class AbstractMappingKeyExtractor
- java.lang.Object
-
- com.consol.citrus.endpoint.adapter.mapping.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 Summary
Constructors Constructor Description AbstractMappingKeyExtractor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
extractMappingKey(com.consol.citrus.message.Message request)
protected abstract String
getMappingKey(com.consol.citrus.message.Message request)
Provides mapping key from incoming request message.void
setMappingKeyPrefix(String mappingKeyPrefix)
Sets the static mapping key prefix automatically added to extracted mapping key.void
setMappingKeySuffix(String mappingKeySuffix)
Sets the static mapping key suffix automatically added to extracted mapping key.
-
-
-
Method Detail
-
extractMappingKey
public final String extractMappingKey(com.consol.citrus.message.Message request)
- Specified by:
extractMappingKey
in interfacecom.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
-
-
-