public interface InterceptorActivity
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.
Modifier and Type | Method and Description |
---|---|
void |
continueProcessing()
Notify the SIS that evaluation of the current interceptor should be continued.
|
Object |
getEvent()
Get the last interceptor extension event fired on this activity by the SIS.
|
ScriptVariable |
getVariable(String name)
Get a script variable.
|
void |
halt()
Notify the SIS that evaluation of the composition should be immediately halted.
|
Object getEvent() throws IllegalStateException
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.void continueProcessing() throws IllegalStateException
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.void halt() throws IllegalStateException
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.ScriptVariable getVariable(String name) throws NullPointerException, IllegalArgumentException
name
- the name of the variable.NullPointerException
- if name
is null
.IllegalArgumentException
- if the variable name is invalid or unknown.
This exception is not thrown if the name identifies a user-defined variable,
since any user-defined variable name is valid.