Class Dmp.Conn.Connection

Connection object that contains information about domain, user, etc

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Returns the baseUrl of this connection object.
 
 
getJson(jsonUrl, succCall, errCall, outputType)
Handles web requests Supports full url (http://spatialstream.com/getQuery.aspx?.
 
init(optionalCallback)
Calls InitSession.aspx with this connection object optionalCallback should be used if web requests are made directly by the application The asynchronous workflow is handled for internal web requests
 
Determins if the InitSession.aspx call is completed
Class Detail
Dmp.Conn.Connection(initUrl)
Parameters:
{String} initUrl
Throws:
initUrl is null
Returns:
instance
Method Detail
getBaseUrl(res)
Returns the baseUrl of this connection object. Optional 'res' parameter that accepts a temporary resource. Appends the server to the base url.
Parameters:
{String} res
Returns:
base url of this connection
getGuid()
Returns:
the unique string everytime we call it.
getJson(jsonUrl, succCall, errCall, outputType)
Handles web requests Supports full url (http://spatialstream.com/getQuery.aspx?...) or service only (getQuery.aspx?...)
Parameters:
{String} jsonUrl
{Function} succCall
{Function} errCall
{String} outputType
init(optionalCallback)
Calls InitSession.aspx with this connection object optionalCallback should be used if web requests are made directly by the application The asynchronous workflow is handled for internal web requests
Parameters:
{String} sik.
Of the form "KEY" or "/sub-domain/folder/key"
{Function} optionalCallback
Throws:
sik is null
isReady()
Determins if the InitSession.aspx call is completed
Returns:
true if the initialization call is complete