Class ExternalInterceptorContext

  • All Implemented Interfaces:
    Iterable<BaseContext>

    public final class ExternalInterceptorContext
    extends BaseContext
    A context representing the state of an externalized interceptor flow.
    Since:
    4.0.0
    Parent:
    ProfileInterceptorContext
    Added:
    Before dispatching control to an external interceptor flow
    • Field Detail

      • externalInterceptor

        @Nonnull
        private final ExternalInterceptor externalInterceptor
        Implementation object.
      • flowExecutionUrl

        @Nullable
        private String flowExecutionUrl
        Value of flowExecutionUrl on branching from flow.
      • eventId

        @Nullable
        private String eventId
        Event to signal.
    • Constructor Detail

      • ExternalInterceptorContext

        public ExternalInterceptorContext​(@Nonnull
                                          ExternalInterceptor interceptor)
        Constructor.
        Parameters:
        interceptor - implementation object
    • Method Detail

      • getFlowExecutionUrl

        @Nullable
        public String getFlowExecutionUrl()
        Get the flow execution URL to return control to.
        Returns:
        return location
      • setFlowExecutionUrl

        @Nonnull
        public ExternalInterceptorContext setFlowExecutionUrl​(@Nullable
                                                              String url)
        Set the flow execution URL to return control to.
        Parameters:
        url - return location
        Returns:
        this context
      • getEventId

        @Nullable
        public String getEventId()
        Get the event ID to signal as the result of this flow.
        Returns:
        event ID
      • setEventId

        @Nonnull
        public ExternalInterceptorContext setEventId​(@Nullable
                                                     String id)
        Set the event ID to signal as the result of this flow.
        Parameters:
        id - event ID
        Returns:
        this context