Package org.eclipse.hono.adapter.mqtt
Class MappedMessage
- java.lang.Object
-
- org.eclipse.hono.adapter.mqtt.MappedMessage
-
public final class MappedMessage extends Object
The result of mapping a message using aMessageMappingservice.
-
-
Constructor Summary
Constructors Constructor Description MappedMessage(org.eclipse.hono.util.ResourceIdentifier targetAddress, io.vertx.core.buffer.Buffer payload)Creates a new mapping result.MappedMessage(org.eclipse.hono.util.ResourceIdentifier targetAddress, io.vertx.core.buffer.Buffer payload, Map<String,String> additionalProperties)Creates a new mapping result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getAdditionalProperties()Gets additional properties to be included with the mapped message.io.vertx.core.buffer.BuffergetPayload()Gets the mapped payload.org.eclipse.hono.util.ResourceIdentifiergetTargetAddress()Gets the address that the message should be forwarded to.
-
-
-
Constructor Detail
-
MappedMessage
public MappedMessage(org.eclipse.hono.util.ResourceIdentifier targetAddress, io.vertx.core.buffer.Buffer payload)Creates a new mapping result.- Parameters:
targetAddress- The target address that the original message has been mapped to.payload- The payload that the original message has been mapped to.- Throws:
NullPointerException- if targetAddress isnull.
-
MappedMessage
public MappedMessage(org.eclipse.hono.util.ResourceIdentifier targetAddress, io.vertx.core.buffer.Buffer payload, Map<String,String> additionalProperties)Creates a new mapping result.- Parameters:
targetAddress- The target address that the original message has been mapped to.payload- The payload that the original message has been mapped to.additionalProperties- Extra properties that should be included with the mapped message.- Throws:
NullPointerException- if targetAddress isnull.
-
-