Class AbstractMappingKeyExtractor
java.lang.Object
org.citrusframework.endpoint.adapter.mapping.AbstractMappingKeyExtractor
- All Implemented Interfaces:
MappingKeyExtractor
- Direct Known Subclasses:
HeaderMappingKeyExtractor
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringextractMappingKey(Message request) protected abstract StringgetMappingKey(Message request) Provides mapping key from incoming request message.voidsetMappingKeyPrefix(String mappingKeyPrefix) Sets the static mapping key prefix automatically added to extracted mapping key.voidsetMappingKeySuffix(String mappingKeySuffix) Sets the static mapping key suffix automatically added to extracted mapping key.
-
Constructor Details
-
AbstractMappingKeyExtractor
public AbstractMappingKeyExtractor()
-
-
Method Details
-
extractMappingKey
- Specified by:
extractMappingKeyin interfaceMappingKeyExtractor
-
getMappingKey
Provides mapping key from incoming request message. Subclasses must implement.- Parameters:
request-- Returns:
-
setMappingKeyPrefix
Sets the static mapping key prefix automatically added to extracted mapping key.- Parameters:
mappingKeyPrefix-
-
setMappingKeySuffix
Sets the static mapping key suffix automatically added to extracted mapping key.- Parameters:
mappingKeySuffix-
-