Package org.frankframework.receivers
Class RawMessageWrapper<M>
java.lang.Object
org.frankframework.receivers.RawMessageWrapper<M>
- Direct Known Subclasses:
MessageWrapper
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
RawMessageWrapper
(M rawMessage) Create a new instance with just message data, and no ID or Correlation ID.RawMessageWrapper
(M rawMessage, String id, String correlationId) Create new instance with raw message, id and correlation ID.RawMessageWrapper
(M rawMessage, Map<String, Object> context) Create a new instance with raw message data and existing context. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
toString()
protected void
updateOrRemoveValue
(String key, String value)
-
Field Details
-
rawMessage
-
id
-
correlationId
-
context
-
-
Constructor Details
-
RawMessageWrapper
protected RawMessageWrapper() -
RawMessageWrapper
Create a new instance with just message data, and no ID or Correlation ID.- Parameters:
rawMessage
- The raw message data.
-
RawMessageWrapper
public RawMessageWrapper(@Nonnull M rawMessage, @Nullable String id, @Nullable String correlationId) Create new instance with raw message, id and correlation ID.- Parameters:
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 keyPipeLineSession.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 keyPipeLineSession.CORRELATION_ID_KEY
.
-
RawMessageWrapper
Create a new instance with raw message data and existing context. Message ID and Correlation ID are taken from this context, if present. All values from the given context are copied into the message context.- Parameters:
rawMessage
- The raw message data.context
- Context for the message. If containing the keysPipeLineSession.MESSAGE_ID_KEY
and / orPipeLineSession.CORRELATION_ID_KEY
, these will be copied to their respective fields.
-
-
Method Details