Package org.webappos.webcaller
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 implementIWebMemWebCallsAdapter
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 executepwd
- the directory, where the .webcalls file was locatedarg
- a string argument or a stringified JSONproject_id
- current webAppOS project ID (null for static calls)appFullName
- the name of the current applogin
- 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
-
-