Interface JCoServerFunctionHandler


public interface JCoServerFunctionHandler
Interface for the function handler.
Function handler that needs to be implemented by the server application. It will be invoked when dispatching a remote call that fits to the implementation as decided by the FunctionHandler annotation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The method invoked by the JCo server runtime to dispatch the remote function call.
  • Method Details

    • handleRequest

      void handleRequest(JCoServerContext serverCtx, JCoFunction function) throws AbapException, AbapClassException
      The method invoked by the JCo server runtime to dispatch the remote function call. If the application throws a RuntimeException, it will be handled as SYSTEM_FAILURE. An AbapException or AbapClassException should be used for signaling exceptional cases within the function module's application logic.
      Parameters:
      serverCtx - context description in which the function was invoked
      function - function instance containing the call content and which shall be modified and filled by the application with the response data
      Throws:
      AbapException - may be thrown by the implementation to inform the caller system about an exceptional situation within the application logic.
      AbapClassException - may be thrown by the implementation to inform the caller system about an exceptional situation within the application logic. This kind of exception only makes sense if the calling system supports it, which is at earliest possible for an ABAP system of release 7.20.