Class: AjaxConnector

OSH.DataConnector.AjaxConnector

Defines the AjaxConnector to connect to a remote server by making AjaxRequest.

Constructor

new AjaxConnector()

Source:

Extends

Methods

getId() → {string}

The data connector default id.

Inherited From:
Source:
Returns:
Type
string

getUrl() → {string}

The stream url.

Inherited From:
Source:
Returns:
Type
string

onError(event)

This is the callback method in case of getting error connection.

Parameters:
Name Type Description
event

The error details

Source:

onSuccess(event)

This is the callback method in case of getting success connection.

Parameters:
Name Type Description
event
Source:

sendRequest(request)

Sends the request to the defined server.

Parameters:
Name Type Description
request

The Http request (as a String format)

Source: