Interface IJsonWebCallsAdapter


  • public interface IJsonWebCallsAdapter
    Interface for webAppOS server-side web calls adapters implementing the "jsoncall" calling conventions. Each adapter must be implemented as Java class with the full name org.webappos.adapters.webcalls.[adapter_name].WebCallsAdapter. The same adapter can implement IWebMemWebCallsAdapter as well.
    Author:
    Sergejs Kozlovics
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String jsoncall​(java.lang.String resolvedLocation, java.lang.String pwd, java.lang.String arg, java.lang.String project_id, java.lang.String appFullName, java.lang.String login)
      Performs a web call according to the "jsoncall" calling conventions.
    • Method Detail

      • jsoncall

        java.lang.String jsoncall​(java.lang.String resolvedLocation,
                                  java.lang.String pwd,
                                  java.lang.String arg,
                                  java.lang.String project_id,
                                  java.lang.String appFullName,
                                  java.lang.String login)
        Performs a web call according to the "jsoncall" calling conventions.
        Parameters:
        resolvedLocation - adapter-specific location of code to execute
        pwd - the directory, where the .webcalls file was located
        arg - a string argument or a stringified JSON
        project_id - current webAppOS project ID (null for static calls)
        appFullName - the name of the current app
        login - the current webAppOS user login (null for public calls)
        Returns:
        the stringified JSON object contatining the call result; in case of error, either the JSON "error" attribute has to be specified, or null returned