HTTPAPIDataAction Class
HTTPAPIDataAction
is a subclass or the
AbstractHTTPDataAction
base class. You can extend this concrete class
to provide the functionality you require.
HTTPAPIDataAction
Use the HTTPAPIDataAction
class to invoke HTTP APIs by
creating an asyncronous XMLHTTPRequest
(XHR) and submitting it to
the specified URL. The HTTP response code enables a message to be displayed briefly
on the canvas. For example, you can customize the request to send JSON or XML
payloads to a REST or SOAP server and you can customize the response handler to show
a custom user interface.
For the HTTPAPIDataAction
data action to work, you must
add the URL of the HTTP API you want to access to your list of Safe Domains and
grant it Connect access. See Register
Safe Domains.
+ HTTPAPIDataAction(oKOModel)
+ create(sID_sName) : HTTPAPIDataAction
+ upgrade(oOldDataActionJS) : Object
+ invoke(oActionContext: ActionContext, oDataActionContext:DataActionContext)
+ getGadgetInfos(oReport) : AbstractGadgetInfo[]
# createHTTPMethodGadgetInfo(oReport) : AbstractGadgetInfo
# createPostParamGadgetInfo(oReport) : AbstractGadgetInfo