Simple RETS Examples
Below is a list os simple examples that are provides in the distribution.
All the code is available in the src directory of the distribution.
Create Session Example
The example below demonstrates how to login and logout of a RETS server using the RETS IQ RETS Library.
Search To CSV Example
Example to demonstrate how to search for records and output to a file in a comma delimited format.
Search To List Example
Example to demonstrate how to search for records and parse them in memory. The example will also limit the search to certain fields and limited number of records.
Get Object URLs Example
Example to demonstrate how to get URL locations for objects. The example performs a search limited to 3 records and then fetches all the URLS for all the photos associated with those records.
Get Objects Example
Example to demonstrate how to get object such as photos for a record. The example performs a search limited to 3 records and then fetches all the the photos associated with those records.
The objects are output to the specified directory with the content ID and object ID as the filename.
Get Metadata Example
Example to demonstrate fetching metadata in memory and traversing some of the elements.
This example will require greater memory allocation to hold the metadata. This can be set by using the VM arguments -Xms128m and -Xmx256m.
Metadata Save and Load Example
Example to demonstrate saving and loading metadata to and from a file.
This example will require greater memory allocation to hold the metadata. This can be set by using the VM arguments -Xms128m and -Xmx256m.
Update Example
Example to demonstrate update the example shows how to edit a record.