Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public interface Handler
What a Lambda-style handler implements. The event and the return value are raw
JSON strings at this layer; the generated dispatcher from a @RestClient
interface is what turns them into typed calls.
Methods
public abstract String handle(String event, String requestId)
throws Exception |
|
Method details
handle
public abstract String handle(String event, String requestId)
throws Exceptionevent: the invocation payload, as JSONrequestId: the host runtime’s id for this invocation, for correlating logs
Returns the response payload as JSON. Throwing is reported to the host runtime as an invocation error.