Telogis.GeoBase.GeoStream |
Contains helper methods for sending requests to the GeoStream server.
Name | Description |
---|---|
GeoStream.JSONRequest | A wrapper class for containing data relating to GeoStream server requests. This is used as a container to implicitly pass method and authentication information to the server. |
GeoStream.JSONResponse | A wrapper class that contains information returned from the GeoStream server. |
GeoStream.ServerExceptionInfo | A class to be filled with error information from the server. |
Name | Description |
---|---|
beginRequest (String name, Function callback, Function errorCallback, Function action, Function cleanup) | Assigns a requestId and registers a callback associated with a request. Arguments
|
callback (String id) | Finds a re-entry point for data to be returned from a GeoStream server-side invocation. References to this callback are then removed. Arguments
Function - A wrapper to the callback associated with the request ID. |
destroy () | Deallocates resources used by the GeoStream subsystem when the page unloads. |
getCallbackUrl (String url, Integer id) | Adds a callback specification to a given URL. The callback specification will be prepended to the servers response allowing the response to be executed directly. Arguments
|
invoke (String type, String method, Array params, Function callback, Function errorCallback, Number timeout, Object server) | Makes a remote call to one of the GeoStream servers. Arguments
|
register (String authToken, String[] serviceURLs, Function[] callbacks, boolean setCookie) | Registers the given authentication token with each server by running its registration page, which will create an HTTP cookie to be checked henceforth by all requests to that server. Arguments
|
runGetScript (String name, String url, Function callback, Function errorCallback, Number timeout) | Sends an HTTP GET request to a given URL, deserializes the response and invokes a callback with the result. Arguments
|
runPostScript (String name, String url, String postData, Function callback, Function errorCallback, Number timeout) | Sends an HTTP POST request to a given URL, deserializes the response and invokes a callback with the result. Arguments
|
sendPostScript (String name, String url, String postdata, Function callback, Function errorCallback, Number timeout, Function preSendCallback) | Sends an HTTP POST request to a given URL, deserializes the response and invokes a callback with the result. Arguments
|
whenRegistered (Function callback) | Executes a callback immediately if the GeoStream subsystem has been registered with an authentication cookie by the server and is hence ready to perform requests. Otherwise, this function queues it to be executed when registration is completed. Arguments
|
Name | Type | Description |
---|---|---|
REQUEST_TIMEOUT | Number | The amount of time, in milliseconds, to wait for a requested script to be fetched before giving up and generating a timeout error. |
requestUncompressedResponses | Boolean | If true, override any HTTP headers requesting compression of the response, and tell the server to only send uncompressed responses. |