Class HeaderMappingKeyExtractor
- java.lang.Object
-
- com.consol.citrus.endpoint.adapter.mapping.AbstractMappingKeyExtractor
-
- com.consol.citrus.endpoint.adapter.mapping.HeaderMappingKeyExtractor
-
- All Implemented Interfaces:
com.consol.citrus.endpoint.adapter.mapping.MappingKeyExtractor
- Direct Known Subclasses:
SoapActionMappingKeyExtractor
public class HeaderMappingKeyExtractor extends AbstractMappingKeyExtractor
Extractor searches for header name in request headers for mapping name identification.- Since:
- 1.4
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description HeaderMappingKeyExtractor()
Default constructor.HeaderMappingKeyExtractor(String headerName)
Constructor using header name field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMappingKey(com.consol.citrus.message.Message request)
Provides mapping key from incoming request message.void
setHeaderName(String headerName)
Sets the header name.-
Methods inherited from class com.consol.citrus.endpoint.adapter.mapping.AbstractMappingKeyExtractor
extractMappingKey, setMappingKeyPrefix, setMappingKeySuffix
-
-
-
-
Constructor Detail
-
HeaderMappingKeyExtractor
public HeaderMappingKeyExtractor()
Default constructor.
-
HeaderMappingKeyExtractor
public HeaderMappingKeyExtractor(String headerName)
Constructor using header name field.- Parameters:
headerName
-
-
-
Method Detail
-
getMappingKey
public String getMappingKey(com.consol.citrus.message.Message request)
Description copied from class:AbstractMappingKeyExtractor
Provides mapping key from incoming request message. Subclasses must implement.- Specified by:
getMappingKey
in classAbstractMappingKeyExtractor
- Returns:
-
setHeaderName
public void setHeaderName(String headerName)
Sets the header name.- Parameters:
headerName
-
-
-