Class EventContext

java.lang.Object
org.opensaml.messaging.context.BaseContext
org.opensaml.profile.context.EventContext
All Implemented Interfaces:
Iterable<BaseContext>
Direct Known Subclasses:
PreviousEventContext

public class EventContext extends BaseContext
A context component which holds the result of a profile action that produces an "event".

Actions that operate on contexts and want to signal the result in the form of an "event" to a sibling or parent component can create or modify an EventContext. The context contains a generic type that represents an event of meaning to a surrounding processing model, such as a workflow.

  • Field Details

    • event

      private Object event
      The event represented.
  • Constructor Details

    • EventContext

      public EventContext()
  • Method Details

    • getEvent

      @Nullable public Object getEvent()
      Get the event represented by the context.
      Returns:
      the event
    • setEvent

      @Nonnull public EventContext setEvent(@Nullable Object newEvent)
      Set the event represented by the context.
      Parameters:
      newEvent - the event
      Returns:
      this context