Package com.storedobject.core
Class JSONPrompt
java.lang.Object
com.storedobject.core.JSONPrompt
- All Implemented Interfaces:
JSONService
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JSONPrompt
public JSONPrompt()
-
-
Method Details
-
execute
Description copied from interface:JSONService
This method should be implemented to serve the connector API call. It carries out the execution logic of the call.- Specified by:
execute
in interfaceJSONService
- 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)
.
-
process
-
getValue
-
addPrompt
-
addPrompt
-
set
-
getTemplate
Retrieves the template string associated with the current MCP request. Overriding classes may return a custom template string based on the business logic.- Returns:
- the template string from the request, or null if no template is defined.
-