Class Dmp.Conn.Connection
Connection object that contains information about domain, user, etc
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
										 
											Dmp.Conn.Connection(initUrl)
										 
										
									 | 
								
| Method Attributes | Method Name and Description | 
|---|---|
| 
												 getBaseUrl(res)
												 
												Returns the baseUrl of this connection object. 
											 | 
										|
| 
												 getGuid()
												 
												
											 | 
										|
| 
												 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 
											 | 
										|
| 
												 isReady()
												 
												Determins if the InitSession.aspx call is completed 
											 | 
										
								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