Class RawMessageWrapper<M>

java.lang.Object
org.frankframework.receivers.RawMessageWrapper<M>
Direct Known Subclasses:
MessageWrapper

public class RawMessageWrapper<M> extends Object
  • Field Details

    • rawMessage

      protected M rawMessage
    • id

      protected String id
    • correlationId

      protected String correlationId
    • context

      protected Map<String,Object> context
  • Constructor Details

    • RawMessageWrapper

      protected RawMessageWrapper()
    • RawMessageWrapper

      public RawMessageWrapper(@Nonnull M rawMessage)
      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 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.
    • RawMessageWrapper

      public RawMessageWrapper(M rawMessage, @Nonnull Map<String,Object> context)
      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 keys PipeLineSession.MESSAGE_ID_KEY and / or PipeLineSession.CORRELATION_ID_KEY, these will be copied to their respective fields.
  • Method Details

    • updateOrRemoveValue

      protected void updateOrRemoveValue(String key, String value)
    • getRawMessage

      public M getRawMessage()
    • getId

      public String getId()
    • getCorrelationId

      public String getCorrelationId()
    • getContext

      public Map<String,Object> getContext()