public class RawMessageWrapper<M> extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
context |
protected String |
correlationId |
protected String |
id |
protected M |
rawMessage |
Modifier | Constructor and Description |
---|---|
protected |
RawMessageWrapper() |
|
RawMessageWrapper(M rawMessage)
Create a new instance with just message data, and no ID or Correlation ID.
|
|
RawMessageWrapper(M rawMessage,
Map<String,Object> context)
Create a new instance with raw message data and existing context.
|
|
RawMessageWrapper(M rawMessage,
String id,
String correlationId)
Create new instance with raw message, id and correlation ID.
|
protected M rawMessage
protected String id
protected String correlationId
protected RawMessageWrapper()
public RawMessageWrapper(@Nonnull M rawMessage)
rawMessage
- The raw message data.public RawMessageWrapper(@Nonnull M rawMessage, @Nullable String id, @Nullable String correlationId)
rawMessage
- The raw message.id
- The ID of the message. May be null. If not null, will be copied to the message context with the
key PipeLineSession.MESSAGE_ID_KEY
.correlationId
- The Correlation ID of the message. May be null. If not null, will be copied to the
message context with the key PipeLineSession.CORRELATION_ID_KEY
.public RawMessageWrapper(M rawMessage, @Nonnull Map<String,Object> context)
rawMessage
- The raw message data.context
- Context for the message. If containing the keys PipeLineSession.MESSAGE_ID_KEY
and / or
PipeLineSession.CORRELATION_ID_KEY
, these will be copied to their respective fields.Copyright © 2023 Frank!Framework. All rights reserved.