new SuperMap.ProcessingServiceBase(url, options)
The ProcessingServiceBase class.
| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of the service. |
||||||||||||||||||||||||||||||||
options |
Object |
The parameters.
|
Extends
Methods
-
addJob(url, params, paramType, seconds)
ProcessingServiceBase.js, line 64 -
Add job of the ProcessingService.
Name Type Description urlstring The URL.
paramsObject The parameter.
paramTypestring type of the request parameter.
secondsnumber When you start to create, get the time interval between the results that create the success.
-
inherited ajaxPolling()
CommonServiceBase.js, line 250 -
If the number of remaining requests failed is not 0 after the request fails, recapture the url and send request.
-
inherited calculatePollingTimes()
CommonServiceBase.js, line 268 -
Calculate how many times the remaining request failed.
-
inherited destroy()
CommonServiceBase.js, line 118 -
Dispose the resource. Properties of referenced resources are set to null.
-
inherited destroy()
CommonServiceBase.js, line 118 -
Dispose the resource. Properties of referenced resources are set to null.
-
inherited getCredential(url){SuperMap.Credential}
CommonServiceBase.js, line 192 -
Get credential information.
Name Type Description urlstring The service url.
Returns:
Type Description SuperMap.Credential The credential information object. -
getJobs(url)
ProcessingServiceBase.js, line 48 -
Get job of the ProcessingService.
Name Type Description urlstring The URL.
-
inherited getUrlCompleted(result)
CommonServiceBase.js, line 223 -
Execute this method after the request is successful.
Name Type Description resultObject The result object returned by the server side.
-
inherited getUrlFailed(result)
CommonServiceBase.js, line 234 -
Execute this method after the request is failed.
Name Type Description resultObject The result object returned by the server side.
-
inherited isServiceSupportPolling()
CommonServiceBase.js, line 295 -
Judge whether the service supports polling.
-
inherited request(options)
CommonServiceBase.js, line 146 -
Name Type Description optionsObject Optional parameters.
Name Type Default Description methodstring 'GET' optional Request method, including: "GET","POST","PUT","DELETE".
urlstring optional The request URL.
paramsObject optional The params are only applicable to the request sent by the GET method as a set of key value pairs added to the URL by query string.
datastring optional The data sent to the server.
successfunction The callback function after the success request.
failurefunction The callback function after the failure request.
scopeObject optional If the callback function is a common method of the object, set the scope of the object.
isInTheSameDomainboolean optional Whether the request is in the current domain.
withCredentialsboolean false optional Request whether to carry a cookie.
-
inherited serviceProcessCompleted(result)
CommonServiceBase.js, line 307 -
Execute this method if process completed.
Name Type Description resultObject The result object returned by the server side.
-
inherited serviceProcessFailed(result)
CommonServiceBase.js, line 319 -
Execute this method if process failed.
Name Type Description resultObject The result object returned by the server side.