Package com.storedobject.core
Interface JSONService
- All Known Implementing Classes:
JSONContentType
,JSONCount
,JSONExists
,JSONGet
,JSONLedger
,JSONList
,JSONMenu
,JSONRetrieve
,JSONTransact
,JSONTranSync
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface defining the JSON Service interface. Any logic handling a SO Connector should implement this interface.
This service handles the execution of JSON requests and responses.
- Author:
- Syam
-
Method Summary
-
Method Details
-
execute
This method should be implemented to serve the connector API call. It carries out the execution logic of the call.- Parameters:
device
- Device on which the call is made.json
- JSON request object received from the device.result
- A JSONMap where response data is inserted. To highlight an error, respond withJSONMap.error(String)
.
-