Class InOutOperationContext

java.lang.Object
org.opensaml.messaging.context.BaseContext
org.opensaml.messaging.context.InOutOperationContext
All Implemented Interfaces:
Iterable<BaseContext>
Direct Known Subclasses:
ProfileRequestContext

public class InOutOperationContext extends BaseContext
An operation context which represents concretely a message exchange pattern involving an inbound message and an outbound message. This is the typical request-response pattern seen in messaging environments, and might be either server-side or client-side.
  • Field Details

    • inboundContext

      @Nullable private MessageContext inboundContext
      The inbound message context.
    • outboundContext

      @Nullable private MessageContext outboundContext
      The outbound message context.
  • Constructor Details

    • InOutOperationContext

      protected InOutOperationContext()
      Constructor. Sets ID to a generated UUID and creation time to now.
    • InOutOperationContext

      public InOutOperationContext(@Nullable MessageContext inbound, @Nullable MessageContext outbound)
      Constructor.
      Parameters:
      inbound - the inbound message context
      outbound - the outbound message context
  • Method Details

    • getInboundMessageContext

      @Nullable public MessageContext getInboundMessageContext()
      The inbound message context instance.
      Returns:
      the inbound message context
    • setInboundMessageContext

      public void setInboundMessageContext(@Nullable MessageContext context)
      Sets the inbound message context.
      Parameters:
      context - inbound message context, may be null
    • getOutboundMessageContext

      @Nullable public MessageContext getOutboundMessageContext()
      The outbound message context instance.
      Returns:
      the outbound message context
    • setOutboundMessageContext

      public void setOutboundMessageContext(@Nullable MessageContext context)
      Sets the outbound message context.
      Parameters:
      context - outbound message context, may be null