Class MessageContext

java.lang.Object
org.opensaml.messaging.context.BaseContext
org.opensaml.messaging.context.MessageContext
All Implemented Interfaces:
Iterable<BaseContext>

public final class MessageContext
extends BaseContext
A context component which holds the state related to the processing of a single message.

Additional information associated with the message represented by the context may be held by the context as subordinate subcontext instances. Subcontext instances may simply hold state information related to the message, in which case they may be seen as a type-safe variant of the ubiquitous properties map pattern. They may also be more functional or operational in nature, for example providing "views" onto the message and/or message context data.

  • Field Details

    • msg

      @Nullable private Object msg
      The message represented.
  • Constructor Details

    • MessageContext

      public MessageContext()
  • Method Details

    • getMessage

      @Nullable public Object getMessage()
      Get the message represented by the message context.
      Returns:
      the message
    • setMessage

      public void setMessage​(@Nullable Object message)
      Set the message represented by the message context.
      Parameters:
      message - the message