Class CallInterceptor


public class CallInterceptor extends Interceptor
A procedure call interceptor. Allows overriding, auditing or transforming results either pre- or post-call. This class implements a default action if it is the last interceptor in the chain. Otherwise it forwards the call to the next one. Custom call interceptors can be created by subclassing this class.
  • Constructor Details

    • CallInterceptor

      public CallInterceptor(String id, String type, Dict dict)
      Creates a new call interceptor from a serialized representation.
      Parameters:
      id - the object identifier
      type - the object type name
      dict - the serialized representation
  • Method Details

    • get

      public static CallInterceptor get()
      Returns the top-level call interceptor.
      Returns:
      the call interceptor
    • call

      public Object call(CallContext cx, Procedure proc, Bindings bindings) throws ProcedureException
      Calls a procedure with the specified bindings.
      Parameters:
      cx - the procedure context
      proc - the procedure definition
      bindings - the procedure call bindings
      Returns:
      the result of the call, or null if the call produced no result
      Throws:
      ProcedureException - if the call execution caused an error