Create a new CordovaAdvancedHTTP instance.
the server definition to use
the default timeout for HTTP requests
Whether this plugin is valid and can be initialized.
Implementations can use this to signal whether any optional dependencies or other conditions have been met for the plugin to work.
The default set of HTTP options associated with this ReST client.
The default set of HTTP options associated with this ReST client.
The server associated with this HTTP implementation.
The server associated with this HTTP implementation.
The default amount of time to wait before giving up on a request.
The default amount of time to wait before giving up on a request.
Perform an HTTP GET to the provided URL.
An OnmsResult result object.
Initialize default options for cordova-plugin-advanced-http calls.
Attempt to extract the data from a response.
Get the union of OnmsHTTPOptions based on the passed options, defaults, and options in the OnmsServer associated with this request. Order of precedence is passed options -> server options -> default options.
Get the OnmsServer object that should be used for making requests. Favors the one passed in the OnmsHTTPOptions, otherwise it falls back to the default server associated with the HTTP implementation.
Perform an HTTP HEAD to the provided URL.
An OnmsResult result object.
Perform an HTTP DELETE to the provided URL.
An OnmsResult result object.
Implementers should override this method if they have actions that need to be performed (like clearing a cache) when server settings change.
Perform an HTTP POST to the provided URL.
An OnmsResult result object.
Perform an HTTP PUT to the provided URL.
An OnmsResult result object.
Set the behavior when making SSL connections to servers.
the server trust mode to use
an optional HTTP implementation to update rather than the one associated with this impl
A convenience method for implementers to use to turn JSON into a javascript object. Use this to process a JSON response before returning it in an OnmsResult object.
A convenience method for implementers to use to turn XML into a javascript object. Use this to process an XML response before returning it in an OnmsResult object.
Set or update the basic auth credentials to be used in making connections.
The username to connect with
The password to connect with
True if cordova.plugins.http
is available.
Generated using TypeDoc
Implementation of the IOnmsHTTP interface using the Cordova Advanced HTTP plugin: https://github.com/silkimen/cordova-plugin-advanced-http
IOnmsHTTP