RETSConnection

RETSConnection


RETSConnection class encapsulates the RETS HTTP Connection

Class Diagram

RETSConnection

Public:

Properties:

NameDescription
url (get) Gets the target url for the transaction  
url (let)Sets the target url to a new value. 

Methods:

NameDescription
DigestMessage Returns the MD5 hash of inString.  
Execute Executes the specified transaction against a RETS server.  
GetURLContent Based on the URL and Request parameters, GetURLContent makes a HTTP request and returns the response.  
RemoveRequestHeaderField Removes key-value pairs in the client request header  
SetRequestHeaderField Gets the username for the session Gets the password for the session Sets key-value pairs in the client request header  

Private:

RETSConnection

NameDescription
Class_Initialize The initializer for the class. It opens an internet session.  
Class_Terminate The terminater for the class. It closes an internet session.  

Constants:

NameDescription
INTERNET_USER_AGENT 

Properties:

NameDescription
cat 
connectionContext information that must be passed between the connection and a transaction  
errMsg 
headerMap 
hHttpOpenRequest 
hInternetConnect 
hInternetSession 
isRetryingAuthorization 
responseMap 
serverUrl 
wwwAuthenticate 

Methods:

NameDescription
AddToHttpHeader private method that sets up the http header for each request.  
BuildQueryString Build a query string based on the contents of the requestMap.  
DigestAuthorization Create digest Authentication String  
DisplayHeaders Display the Response headers thru the Logger.  
GetCookie Returns a Cookie from the HTTP response.  
GetResponseCode Retrieves the http response code for the HTTP Request.  
IsStale Looks for stale="true" in Authorization Header parameters.  
IsValidString * Checks to make sure the string passed in is a valid string parameter (not null and not zero length).  
ParseAuthenticate Parses the WWW-Authenticate value and returns a Dictionary.  
ProcessRETSTransaction private method that sends the transaction to the server and processes the response.  
ReadContents Reads the response from an HTTP Open Request.  
RemoveQuotes * Removes the quotes on a string.  
SetAuthorization Sets up the username and password for the HTTP Request.  
StoreHeadersResponseMap Copy the Response headers into a Dictionary Object.