Interface InterceptorActivity

  • All Known Subinterfaces:
    SipInterceptorActivity

    public interface InterceptorActivity
    The Interceptor Activity is the activity type on which the SIS fires events to interceptor extension components. All interceptor extension events for a single call are fired on the same Interceptor Activity.

    The SIS uses the same SLEE activity object to represent both the Interceptor Activity and Service Composition Selection Activity for a given call. Therefore it is possible for SIS components and SLEE applications that use either activity to share state related to the call if required.

    The SLEE activity representing the Interceptor Activity for a call ends when control of the call terminates in the SIS.

    • Method Detail

      • getEvent

        Object getEvent()
                 throws IllegalStateException
        Get the last interceptor extension event fired on this activity by the SIS.
        Returns:
        the last interceptor extension event fired.
        Throws:
        IllegalStateException - if the interceptor extension component has already returned a response to the SIS for the most recent event fired on this activity. This exception may also be thrown if the extension component has taken too long to respond to the request and a timeout has occurred in the SIS.
      • continueProcessing

        void continueProcessing()
                         throws IllegalStateException
        Notify the SIS that evaluation of the current interceptor should be continued. No changes to the current composition service input or output message are made.
        Throws:
        IllegalStateException - if the interceptor extension component has already returned a response to the SIS for the most recent event fired on this activity. This exception may also be thrown if the extension component has taken too long to respond to the request and a timeout has occurred in the SIS.
      • halt

        void halt()
           throws IllegalStateException
        Notify the SIS that evaluation of the composition should be immediately halted. This method can only be invoked during initial event processing.
        Throws:
        IllegalStateException - if the interceptor extension component has already returned a response to the SIS for the initial event, or if the interceptor component has been invoked for a non-initial event. This exception may also be thrown if the extension component has taken too long to respond to the request and a timeout has occurred in the SIS.