public interface InterceptorContext
An Interceptor Context object is not serialisable and should not be stored in transient fields of an SBB object beyond a single event handler transaction boundary. Rather, a new Interceptor Context object should be retrieved at least once per transaction when required and discarded when no longer needed.
Modifier and Type | Method and Description |
---|---|
ScriptVariable |
getVariable(String name)
Get a script variable.
|
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.