public class ConnectionStatusMessageMapper extends AbstractMessageMapper
creation-time and ttd from the message and builds a
ModifyFeature command from it. The default featureId is ConnectionStatus but can be changed via
the mapping configuration. The thingId must be set in the mapping configuration. It can either be a fixed Thing ID
or it can be resolved from the message headers by using a placeholder e.g. {{ header:device_id }}.| Constructor and Description |
|---|
ConnectionStatusMessageMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
doConfigure(MappingConfig mappingConfig,
MessageMapperConfiguration messageMapperConfiguration)
Applies the mapper specific configuration.
|
List<ExternalMessage> |
map(org.eclipse.ditto.protocoladapter.Adaptable adaptable)
Maps an
Adaptable to an ExternalMessage |
List<org.eclipse.ditto.protocoladapter.Adaptable> |
map(ExternalMessage externalMessage)
Maps an
ExternalMessage to an Adaptable |
configure, getContentTypeBlacklist, getIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindContentType, findContentType, getDefaultOptionspublic void doConfigure(MappingConfig mappingConfig, MessageMapperConfiguration messageMapperConfiguration)
AbstractMessageMapperdoConfigure in class AbstractMessageMappermappingConfig - the service configuration for the mapping.messageMapperConfiguration - the mapper specific configuration configured in scope of a single connection.public List<org.eclipse.ditto.protocoladapter.Adaptable> map(ExternalMessage externalMessage)
MessageMapperExternalMessage to an AdaptableexternalMessage - the ExternalMessage to mappublic List<ExternalMessage> map(org.eclipse.ditto.protocoladapter.Adaptable adaptable)
MessageMapperAdaptable to an ExternalMessageadaptable - the Adaptable to mapCopyright © 2017–2019 Eclipse Foundation. All rights reserved.