public abstract class AbstractMessageMapper extends Object implements MessageMapper
MessageMapper which adds an id field and also its initialization from mapping
configuration (id is not passed as constructor argument because the mappers are created by reflection).| Constructor and Description |
|---|
AbstractMessageMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(MappingConfig mappingConfig,
MessageMapperConfiguration configuration)
Applies configuration for this MessageMapper.
|
protected void |
doConfigure(MappingConfig mappingConfig,
MessageMapperConfiguration configuration)
Applies the mapper specific configuration.
|
Collection<String> |
getContentTypeBlacklist()
Returns a blacklist of content-types which shall not be handled by this message mapper.
|
String |
getId()
Returns a unique ID of this mapper that can be used in sources and targets to reference this mapper.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindContentType, findContentType, getDefaultOptions, map, mappublic String getId()
MessageMappergetId in interface MessageMapperpublic Collection<String> getContentTypeBlacklist()
MessageMapperMessageMapperConfiguration in
MessageMapper.configure(MappingConfig, MessageMapperConfiguration).getContentTypeBlacklist in interface MessageMapperpublic final void configure(MappingConfig mappingConfig, MessageMapperConfiguration configuration)
MessageMapperconfigure in interface MessageMappermappingConfig - the config scoped to the mapping section "ditto.connectivity.mapping".configuration - the configuration to apply.protected void doConfigure(MappingConfig mappingConfig, MessageMapperConfiguration configuration)
mappingConfig - the service configuration for the mapping.configuration - the mapper specific configuration configured in scope of a single connection.Copyright © 2017–2019 Eclipse Foundation. All rights reserved.