diff --git a/build.properties b/build.properties new file mode 100644 index 0000000..e7c76ca --- /dev/null +++ b/build.properties @@ -0,0 +1,11 @@ +# +# Properties file for commons build.xml +# +src=src +etc=src/etc +libsrc=src/lib +javadoc=src/javadoc + +build=target +classes=target/classes +libdir=target/lib diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..69a0b10 --- /dev/null +++ b/build.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + RETS 1.5]]> + Copyright © 2002 National Association of Realtors - All Rights Reserved.]]> + + + + + + + + + + + + + \ No newline at end of file diff --git a/project.properties b/project.properties new file mode 100644 index 0000000..5c3fa67 --- /dev/null +++ b/project.properties @@ -0,0 +1,3 @@ +maven.jar.override=on +maven.jar.mail=${basedir}/src/lib/mail.jar +maven.jar.commons-lang=${basedir}/src/lib/commons-lang-1.0-mod.jar diff --git a/src/etc/log4j.properties b/src/etc/log4j.properties new file mode 100644 index 0000000..a4e6cd2 --- /dev/null +++ b/src/etc/log4j.properties @@ -0,0 +1,38 @@ +log4j.rootCategory=error, stdout + +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n + + +# client API logfile +log4j.appender.R1=org.apache.log4j.RollingFileAppender +log4j.appender.R1.File=/tmp/retsClientAPI.log +log4j.appender.R1.MaxFileSize=100KB +log4j.appender.R1.MaxBackupIndex=3 +log4j.appender.R1.layout=org.apache.log4j.PatternLayout +log4j.appender.R1.layout.ConversionPattern=%p %t %c CLIENTAPI- %m%n + + +# server logfile +log4j.appender.R2=org.apache.log4j.RollingFileAppender +log4j.appender.R2.File=/tmp/retsServer.log +log4j.appender.R2.MaxFileSize=100KB +log4j.appender.R2.MaxBackupIndex=3 +log4j.appender.R2.layout=org.apache.log4j.PatternLayout +log4j.appender.R2.layout.ConversionPattern=%p %t %c SERVER - %m%n + +# setup RETS client API logging +log4j.category.org.realtor.rets.retsapi=debug, R1 +log4j.category.org.realtor.rets.util=debug, R1 + + +# setup RETS server logging +log4j.category.org.realtor.rets.server=debug, R2, stdout +log4j.category.org.realtor.rets.util=debug, R2 +log4j.category.org.realtor.rets.persistance=error, R2 + + +log4j.additivity.org.realtor.rets.server=false +log4j.additivity.org.realtor.rets.retsapi=false +log4j.additivity.org.realtor.rets.util=false diff --git a/src/javadoc/allclasses-frame.html b/src/javadoc/allclasses-frame.html new file mode 100644 index 0000000..25a9d65 --- /dev/null +++ b/src/javadoc/allclasses-frame.html @@ -0,0 +1,107 @@ + + + + + + +All Classes (RETS 1.5 Reference Impl) + + + + + + +All Classes +
+ + + + + +
AppliancesMultiValueFieldConversion +
+AttributeExtracter +
+Base64Encoder +
+Base64FormatException +
+BasementMultiValueFieldConversion +
+BaseMultiValueFieldConversion +
+BooleanToVarcharFieldConversion +
+CompactParser +
+DesCrypter +
+DigestUtil +
+ExteriorMultiValueFieldConversion +
+FenceMultiValueFieldConversion +
+GarageMultiValueFieldConversion +
+HealthCheck +
+HeatingSystemMultiValueFieldConversion +
+HexUtils +
+ListingStatusMultiValueFieldConversion +
+ListingTypeMultiValueFieldConversion +
+LockBoxMultiValueFieldConversion +
+MD5Util +
+MultiValueFieldConversion +
+OccupiedByMultiValueFieldConversion +
+PropertiesLocator +
+PropertiesNotFoundException +
+PublicTransportationMultiValueFieldConversion +
+Resource +
+ResourceLocator +
+RETSCompactHandler +
+RETSConfigurator +
+RETSReplyCodes +
+RETSRequestResponse +
+RoofMultiValueFieldConversion +
+RoomMultiValueFieldConversion +
+SidingMultiValueFieldConversion +
+StyleMultiValueFieldConversion +
+ViewDescriptionMultiValueFieldConversion +
+WaterMultiValueFieldConversion +
+XMLUtils +
+ZoningMultiValueFieldConversion +
+
+ + + diff --git a/src/javadoc/allclasses-noframe.html b/src/javadoc/allclasses-noframe.html new file mode 100644 index 0000000..fd522b4 --- /dev/null +++ b/src/javadoc/allclasses-noframe.html @@ -0,0 +1,107 @@ + + + + + + +All Classes (RETS 1.5 Reference Impl) + + + + + + +All Classes +
+ + + + + +
AppliancesMultiValueFieldConversion +
+AttributeExtracter +
+Base64Encoder +
+Base64FormatException +
+BasementMultiValueFieldConversion +
+BaseMultiValueFieldConversion +
+BooleanToVarcharFieldConversion +
+CompactParser +
+DesCrypter +
+DigestUtil +
+ExteriorMultiValueFieldConversion +
+FenceMultiValueFieldConversion +
+GarageMultiValueFieldConversion +
+HealthCheck +
+HeatingSystemMultiValueFieldConversion +
+HexUtils +
+ListingStatusMultiValueFieldConversion +
+ListingTypeMultiValueFieldConversion +
+LockBoxMultiValueFieldConversion +
+MD5Util +
+MultiValueFieldConversion +
+OccupiedByMultiValueFieldConversion +
+PropertiesLocator +
+PropertiesNotFoundException +
+PublicTransportationMultiValueFieldConversion +
+Resource +
+ResourceLocator +
+RETSCompactHandler +
+RETSConfigurator +
+RETSReplyCodes +
+RETSRequestResponse +
+RoofMultiValueFieldConversion +
+RoomMultiValueFieldConversion +
+SidingMultiValueFieldConversion +
+StyleMultiValueFieldConversion +
+ViewDescriptionMultiValueFieldConversion +
+WaterMultiValueFieldConversion +
+XMLUtils +
+ZoningMultiValueFieldConversion +
+
+ + + diff --git a/src/javadoc/constant-values.html b/src/javadoc/constant-values.html new file mode 100644 index 0000000..6363db4 --- /dev/null +++ b/src/javadoc/constant-values.html @@ -0,0 +1,227 @@ + + + + + + +Constant Field Values (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Constant Field Values

+
+
+Contents + + + + + + +
+org.realtor.*
+ +

+ + + + + + + + + + + + +
org.realtor.rets.util.Base64Encoder
+private static final intBUFFER_SIZE1024
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.realtor.rets.util.HealthCheck
+public static final java.lang.StringPROPERTIES_FILE"HealthCheck.properties"
+public static final java.lang.StringPROPERTY_CHECK_EVERY_MINUTES"check_every_minutes"
+public static final java.lang.StringPROPERTY_CHECK_URL"check_url"
+public static final java.lang.StringPROPERTY_FAILURE_EMAIL_ADDRESSES"failure_email_addresses"
+public static final java.lang.StringPROPERTY_FAILURE_MESSAGE"failure_message"
+public static final java.lang.StringPROPERTY_FROM_EMAIL_ADDRESS"from_email_address"
+public static final java.lang.StringPROPERTY_HEALTH_CHECK_PORT"health_check_port"
+public static final java.lang.StringPROPERTY_SMTP_AUTHENT_PASSWORD"smtp_authentication_password"
+public static final java.lang.StringPROPERTY_SMTP_AUTHENT_USER"smtp_authentication_user"
+public static final java.lang.StringPROPERTY_SMTP_HOST_ADDRESS"smtp_host_address"
+ +

+ +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/deprecated-list.html b/src/javadoc/deprecated-list.html new file mode 100644 index 0000000..42b61ef --- /dev/null +++ b/src/javadoc/deprecated-list.html @@ -0,0 +1,123 @@ + + + + + + +Deprecated List (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Deprecated API

+
+
+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/help-doc.html b/src/javadoc/help-doc.html new file mode 100644 index 0000000..0465fe0 --- /dev/null +++ b/src/javadoc/help-doc.html @@ -0,0 +1,182 @@ + + + + + + +API Help (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+

+Use

+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. +
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/index-all.html b/src/javadoc/index-all.html new file mode 100644 index 0000000..02fcdba --- /dev/null +++ b/src/javadoc/index-all.html @@ -0,0 +1,992 @@ + + + + + + +Index (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +A B C D E F G H I J L M N O P R S T U V W X Z _
+

+A

+
+
addMapping(String, String) - +Method in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
Add a mapping to this object +
addTextElement2Node(Document, Node, String, String) - +Static method in class org.realtor.rets.util.XMLUtils +
Creates an Element and sets the text value of the element. +
addToRequestMap(Map) - +Method in class org.realtor.rets.util.RETSRequestResponse +
  +
addToResponseMap(Map) - +Method in class org.realtor.rets.util.RETSRequestResponse +
  +
AppliancesMultiValueFieldConversion - class org.realtor.rets.converters.AppliancesMultiValueFieldConversion.
AppliancesMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
AppliancesMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.AppliancesMultiValueFieldConversion +
  +
AttributeExtracter - class org.realtor.rets.util.AttributeExtracter.
 
AttributeExtracter() - +Constructor for class org.realtor.rets.util.AttributeExtracter +
Creates a new instance of AttributeExtracter +
+
+

+B

+
+
Base64Encoder - class org.realtor.rets.util.Base64Encoder.
BASE64 encoder implementation.
Base64Encoder(InputStream, OutputStream) - +Constructor for class org.realtor.rets.util.Base64Encoder +
Create a new Base64 encoder, encoding input to output. +
Base64Encoder(String) - +Constructor for class org.realtor.rets.util.Base64Encoder +
Create a new Base64 encoder, to encode the given string. +
Base64FormatException - exception org.realtor.rets.util.Base64FormatException.
Exception for invalid BASE64 streams.
Base64FormatException(String) - +Constructor for class org.realtor.rets.util.Base64FormatException +
Create that kind of exception +
BasementMultiValueFieldConversion - class org.realtor.rets.converters.BasementMultiValueFieldConversion.
BasementMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
BasementMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.BasementMultiValueFieldConversion +
  +
BaseMultiValueFieldConversion - class org.realtor.rets.converters.BaseMultiValueFieldConversion.
BaseMultiValueFieldConversion.java Created Jul 29, 2003 + Base class For multi value mappings.
BaseMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
BooleanToVarcharFieldConversion - class org.realtor.rets.converters.BooleanToVarcharFieldConversion.
BooleanToVarcharFieldConversion.java Created Jul 24, 2003 + This object converts database values from their database values (either 'Y' , 'N' or null) + to a Java Boolean object.
BooleanToVarcharFieldConversion() - +Constructor for class org.realtor.rets.converters.BooleanToVarcharFieldConversion +
  +
BUFFER_SIZE - +Static variable in class org.realtor.rets.util.Base64Encoder +
  +
+
+

+C

+
+
cat - +Static variable in class org.realtor.rets.util.RETSRequestResponse +
  +
cat - +Static variable in class org.realtor.rets.util.RETSReplyCodes +
log4j Category object +
cat - +Static variable in class org.realtor.rets.util.DigestUtil +
log4j Category object +
characters(char[], int, int) - +Method in class org.realtor.rets.util.RETSCompactHandler +
  +
CompactParser - class org.realtor.rets.util.CompactParser.
CompactParser.java Created Aug 1, 2003 + This is a lightweight parser for RETS compact messages.
CompactParser() - +Constructor for class org.realtor.rets.util.CompactParser +
  +
CompactParser(String) - +Constructor for class org.realtor.rets.util.CompactParser +
  +
CompactParser(String, String) - +Constructor for class org.realtor.rets.util.CompactParser +
  +
configure() - +Static method in class org.realtor.rets.util.RETSConfigurator +
calls BasicConfigurator.configure() only once +
configured - +Static variable in class org.realtor.rets.util.RETSConfigurator +
  +
convert(byte[]) - +Static method in class org.realtor.rets.util.HexUtils +
Convert a byte array into a printable format containing a + String of hexadecimal digit characters (two per byte). +
convert(String) - +Static method in class org.realtor.rets.util.HexUtils +
Convert a String of hexadecimal digits into the corresponding + byte array by encoding each two hexadecimal digits as a byte. +
convertDigit(int) - +Static method in class org.realtor.rets.util.HexUtils +
[Private] Convert the specified value (0 .. +
convertToHex(byte[]) - +Static method in class org.realtor.rets.util.MD5Util +
Returns the HEX representation of a byte array +
currentElement - +Variable in class org.realtor.rets.util.RETSCompactHandler +
  +
currentElement - +Variable in class org.realtor.rets.util.AttributeExtracter +
  +
+
+

+D

+
+
dcipher - +Variable in class org.realtor.rets.util.DesCrypter +
  +
decrypt(String) - +Method in class org.realtor.rets.util.DesCrypter +
  +
delim - +Variable in class org.realtor.rets.util.RETSCompactHandler +
  +
delim - +Variable in class org.realtor.rets.util.AttributeExtracter +
  +
delimiter - +Variable in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
delimiter - +Variable in class org.realtor.rets.util.CompactParser +
  +
DesCrypter - class org.realtor.rets.util.DesCrypter.
 
DesCrypter(byte[]) - +Constructor for class org.realtor.rets.util.DesCrypter +
  +
Digest(String) - +Static method in class org.realtor.rets.util.DigestUtil +
  +
Digest(String, String, String, String, String, String, String, String, String) - +Static method in class org.realtor.rets.util.DigestUtil +
  +
digestAuthorization(String, String, String, String, String) - +Static method in class org.realtor.rets.util.DigestUtil +
Create digest Authentication String +
DigestUtil - class org.realtor.rets.util.DigestUtil.
 
DigestUtil() - +Constructor for class org.realtor.rets.util.DigestUtil +
  +
DOMtoOutputStream(Document, OutputStream) - +Static method in class org.realtor.rets.util.XMLUtils +
This method dumps out a dom document to an output stream. +
+
+

+E

+
+
ecipher - +Variable in class org.realtor.rets.util.DesCrypter +
  +
emit(String) - +Method in class org.realtor.rets.util.RETSCompactHandler +
  +
encoding - +Static variable in class org.realtor.rets.util.Base64Encoder +
  +
encrypt(String) - +Method in class org.realtor.rets.util.DesCrypter +
  +
endDocument() - +Method in class org.realtor.rets.util.RETSCompactHandler +
  +
endElement(String, String, String) - +Method in class org.realtor.rets.util.RETSCompactHandler +
  +
executeXpathQuery(Node, String) - +Static method in class org.realtor.rets.util.XMLUtils +
  +
ExteriorMultiValueFieldConversion - class org.realtor.rets.converters.ExteriorMultiValueFieldConversion.
ExteriorMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
ExteriorMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.ExteriorMultiValueFieldConversion +
  +
+
+

+F

+
+
FenceMultiValueFieldConversion - class org.realtor.rets.converters.FenceMultiValueFieldConversion.
FenceMultiValueFieldConversion.java Created Jul 29, 2003 + + + Copyright 2003, Avantia inc.
FenceMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.FenceMultiValueFieldConversion +
  +
file - +Variable in class org.realtor.rets.util.Resource +
  +
+
+

+G

+
+
GarageMultiValueFieldConversion - class org.realtor.rets.converters.GarageMultiValueFieldConversion.
GarageMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
GarageMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.GarageMultiValueFieldConversion +
  +
get(String) - +Static method in class org.realtor.rets.util.ResourceLocator +
  +
get(String) - +Static method in class org.realtor.rets.util.RETSReplyCodes +
get the ReplyText mapped by the ReplyCode +
get1(byte[], int) - +Method in class org.realtor.rets.util.Base64Encoder +
  +
get2(byte[], int) - +Method in class org.realtor.rets.util.Base64Encoder +
  +
get3(byte[], int) - +Method in class org.realtor.rets.util.Base64Encoder +
  +
get4(byte[], int) - +Static method in class org.realtor.rets.util.Base64Encoder +
  +
getAllOptions() - +Method in interface org.realtor.rets.converters.MultiValueFieldConversion +
  +
getAllOptions() - +Method in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
getAttribute(String, String) - +Method in class org.realtor.rets.util.CompactParser +
  +
getColumns() - +Method in class org.realtor.rets.util.CompactParser +
Returns a Vector conaining the names of the columns. +
getCommaSeparatedValues(String) - +Method in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
getData(String) - +Method in class org.realtor.rets.util.CompactParser +
Returns the data contained in the column name represented by the String key +
getDigestAsHexString(byte[]) - +Static method in class org.realtor.rets.util.MD5Util +
returns MD5 HEX value for a given a byte array +
getDigestAsHexString(String) - +Static method in class org.realtor.rets.util.MD5Util +
returns MD5 HEX value for a given string +
getDirectory() - +Method in class org.realtor.rets.util.Resource +
Returns the directory containing the resource, or null if the resource + isn't directly available on the filesystem. +
getHash() - +Method in class org.realtor.rets.util.AttributeExtracter +
  +
getInputStream() - +Method in class org.realtor.rets.util.Resource +
Returns an input stream to read the resource contents. +
getMapping() - +Method in class org.realtor.rets.util.CompactParser +
  +
getMappings() - +Method in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
getName() - +Method in class org.realtor.rets.util.Resource +
Returns the resource name, as passed to the constructor. +
getNonCommaSeparatedValues(String) - +Method in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
getPassword() - +Method in class org.realtor.rets.util.HealthCheck.EMailAuthenticator +
Gets the password. +
getPasswordAuthentication() - +Method in class org.realtor.rets.util.HealthCheck.EMailAuthenticator +
Gets the PasswordAuthentication object using the user name and password that + have been set in this object. +
getProperties() - +Method in class org.realtor.rets.util.HealthCheck +
Get the properties needed by HealthCheck. +
getRequestMap() - +Method in class org.realtor.rets.util.RETSRequestResponse +
  +
getRequestVariable(String) - +Method in class org.realtor.rets.util.RETSRequestResponse +
  +
getResponseMap() - +Method in class org.realtor.rets.util.RETSRequestResponse +
  +
getResponseVariable(String) - +Method in class org.realtor.rets.util.RETSRequestResponse +
  +
getTag(String, String) - +Method in class org.realtor.rets.util.CompactParser +
  +
getTagBody(String, String) - +Method in class org.realtor.rets.util.CompactParser +
  +
getTestInstance() - +Static method in class org.realtor.rets.util.CompactParser +
  +
getUser() - +Method in class org.realtor.rets.util.HealthCheck.EMailAuthenticator +
Gets the user name. +
+
+

+H

+
+
hasMoreColumns() - +Method in class org.realtor.rets.util.CompactParser +
Tests whether or not there are more columns in the iteration. +
HealthCheck - class org.realtor.rets.util.HealthCheck.
A class that checks the status of the supplied url and sends a supplied + notification to the supplied email addresses if there is any kind of failure.
HealthCheck.EMailAuthenticator - class org.realtor.rets.util.HealthCheck.EMailAuthenticator.
This object is used to provide the Authenticator object required by JavaMail + when it connects to a SMTP mail server that is secured.
HealthCheck.EMailAuthenticator() - +Constructor for class org.realtor.rets.util.HealthCheck.EMailAuthenticator +
Default constructor. +
HealthCheck.Listener - class org.realtor.rets.util.HealthCheck.Listener.
This object is used to listen to a port for a stop request.
HealthCheck.Listener() - +Constructor for class org.realtor.rets.util.HealthCheck.Listener +
Default constructor. +
HealthCheck() - +Constructor for class org.realtor.rets.util.HealthCheck +
Constructor for HealthCheck. +
HealthCheck(String) - +Constructor for class org.realtor.rets.util.HealthCheck +
Constructor for HealthCheck. +
HeatingSystemMultiValueFieldConversion - class org.realtor.rets.converters.HeatingSystemMultiValueFieldConversion.
HeatingTypeMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
HeatingSystemMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.HeatingSystemMultiValueFieldConversion +
  +
HexUtils - class org.realtor.rets.util.HexUtils.
 
HexUtils() - +Constructor for class org.realtor.rets.util.HexUtils +
  +
+
+

+I

+
+
in - +Variable in class org.realtor.rets.util.Base64Encoder +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.ZoningMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.WaterMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.ViewDescriptionMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.StyleMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.SidingMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.RoomMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.RoofMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.PublicTransportationMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.OccupiedByMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.LockBoxMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.ListingTypeMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.ListingStatusMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.HeatingSystemMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.GarageMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.FenceMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.ExteriorMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.BasementMultiValueFieldConversion +
  +
initializeMappings() - +Method in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
To implement this method, call addMapping for each mapping you would + like to add. +
initializeMappings() - +Method in class org.realtor.rets.converters.AppliancesMultiValueFieldConversion +
  +
isMultiValue() - +Method in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
iter - +Variable in class org.realtor.rets.util.CompactParser +
  +
+
+

+J

+
+
javaToSql(Object) - +Method in class org.realtor.rets.converters.BooleanToVarcharFieldConversion +
  +
javaToSql(Object) - +Method in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
+
+

+L

+
+
lastModified() - +Method in class org.realtor.rets.util.Resource +
Returns when the resource was last modified. +
ListingStatusMultiValueFieldConversion - class org.realtor.rets.converters.ListingStatusMultiValueFieldConversion.
ListingStatusMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
ListingStatusMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.ListingStatusMultiValueFieldConversion +
  +
ListingTypeMultiValueFieldConversion - class org.realtor.rets.converters.ListingTypeMultiValueFieldConversion.
ListingTypeMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
ListingTypeMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.ListingTypeMultiValueFieldConversion +
  +
locate(String) - +Static method in class org.realtor.rets.util.ResourceLocator +
  +
locateProperties(String) - +Static method in class org.realtor.rets.util.PropertiesLocator +
  +
LockBoxMultiValueFieldConversion - class org.realtor.rets.converters.LockBoxMultiValueFieldConversion.
LockBoxMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
LockBoxMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.LockBoxMultiValueFieldConversion +
  +
+
+

+M

+
+
main(String[]) - +Static method in class org.realtor.rets.util.RETSCompactHandler +
  +
main(String[]) - +Static method in class org.realtor.rets.util.HealthCheck +
Method used to test this class. +
main(String[]) - +Static method in class org.realtor.rets.util.CompactParser +
  +
main(String[]) - +Static method in class org.realtor.rets.util.Base64Encoder +
Testing the encoder. +
map - +Static variable in class org.realtor.rets.util.ResourceLocator +
  +
map - +Variable in class org.realtor.rets.util.CompactParser +
  +
map(String, String) - +Method in class org.realtor.rets.util.CompactParser +
  +
mappings - +Variable in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
MD5Util - class org.realtor.rets.util.MD5Util.
 
MD5Util() - +Constructor for class org.realtor.rets.util.MD5Util +
Creates new MD5Util +
multiValue - +Variable in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
MultiValueFieldConversion - interface org.realtor.rets.converters.MultiValueFieldConversion.
MultiValueFieldConversion.java Created Aug 5, 2003 + + + Copyright 2003, Avantia inc.
+
+

+N

+
+
name - +Variable in class org.realtor.rets.util.Resource +
  +
nextColumn() - +Method in class org.realtor.rets.util.CompactParser +
Get the next column in the sequence. +
nl() - +Method in class org.realtor.rets.util.RETSCompactHandler +
  +
+
+

+O

+
+
OccupiedByMultiValueFieldConversion - class org.realtor.rets.converters.OccupiedByMultiValueFieldConversion.
OccupiedByMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
OccupiedByMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.OccupiedByMultiValueFieldConversion +
  +
org.realtor.rets.converters - package org.realtor.rets.converters
 
org.realtor.rets.util - package org.realtor.rets.util
 
os - +Variable in class org.realtor.rets.util.RETSCompactHandler +
  +
out - +Variable in class org.realtor.rets.util.Base64Encoder +
  +
+
+

+P

+
+
parse(String) - +Method in class org.realtor.rets.util.CompactParser +
  +
parseAuthenticate(String) - +Static method in class org.realtor.rets.util.DigestUtil +
  +
parseText(String) - +Method in class org.realtor.rets.util.RETSCompactHandler +
  +
printNode(Node, String) - +Static method in class org.realtor.rets.util.XMLUtils +
  +
printNodeList(NodeList) - +Static method in class org.realtor.rets.util.XMLUtils +
  +
process() - +Method in class org.realtor.rets.util.Base64Encoder +
Process the data: encode the input stream to the output stream. +
processString() - +Method in class org.realtor.rets.util.Base64Encoder +
Encode the content of this encoder, as a string. +
prop - +Static variable in class org.realtor.rets.util.RETSReplyCodes +
holds the Properties (Codes->Text) that are loaded at startup. +
PROPERTIES_FILE - +Static variable in class org.realtor.rets.util.HealthCheck +
  +
PropertiesLocator - class org.realtor.rets.util.PropertiesLocator.
PropertiesLocator.java Created Aug 6, 2003 + + + Copyright 2003, Avantia inc.
PropertiesLocator() - +Constructor for class org.realtor.rets.util.PropertiesLocator +
  +
PropertiesNotFoundException - exception org.realtor.rets.util.PropertiesNotFoundException.
PropertiesNotFoundException.java Created Aug 6, 2003 + + + Copyright 2003, Avantia inc.
PropertiesNotFoundException(String) - +Constructor for class org.realtor.rets.util.PropertiesNotFoundException +
  +
PROPERTY_CHECK_EVERY_MINUTES - +Static variable in class org.realtor.rets.util.HealthCheck +
  +
PROPERTY_CHECK_URL - +Static variable in class org.realtor.rets.util.HealthCheck +
  +
PROPERTY_FAILURE_EMAIL_ADDRESSES - +Static variable in class org.realtor.rets.util.HealthCheck +
  +
PROPERTY_FAILURE_MESSAGE - +Static variable in class org.realtor.rets.util.HealthCheck +
  +
PROPERTY_FROM_EMAIL_ADDRESS - +Static variable in class org.realtor.rets.util.HealthCheck +
  +
PROPERTY_HEALTH_CHECK_PORT - +Static variable in class org.realtor.rets.util.HealthCheck +
  +
PROPERTY_SMTP_AUTHENT_PASSWORD - +Static variable in class org.realtor.rets.util.HealthCheck +
  +
PROPERTY_SMTP_AUTHENT_USER - +Static variable in class org.realtor.rets.util.HealthCheck +
  +
PROPERTY_SMTP_HOST_ADDRESS - +Static variable in class org.realtor.rets.util.HealthCheck +
  +
PublicTransportationMultiValueFieldConversion - class org.realtor.rets.converters.PublicTransportationMultiValueFieldConversion.
PublicTransportationMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
PublicTransportationMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.PublicTransportationMultiValueFieldConversion +
  +
+
+

+R

+
+
removeQuotes(String) - +Static method in class org.realtor.rets.util.DigestUtil +
Removes the quotes on a string. +
req - +Variable in class org.realtor.rets.util.RETSRequestResponse +
  +
reset() - +Method in class org.realtor.rets.util.CompactParser +
resets the iterator to start at the first column +
Resource - class org.realtor.rets.util.Resource.
A class to locate resources, retrieve their contents, and determine their + last modified time.
Resource(String) - +Constructor for class org.realtor.rets.util.Resource +
  +
ResourceLocator - class org.realtor.rets.util.ResourceLocator.
 
ResourceLocator() - +Constructor for class org.realtor.rets.util.ResourceLocator +
  +
resp - +Variable in class org.realtor.rets.util.RETSRequestResponse +
  +
retHash - +Variable in class org.realtor.rets.util.AttributeExtracter +
  +
RETSCompactHandler - class org.realtor.rets.util.RETSCompactHandler.
 
RETSCompactHandler() - +Constructor for class org.realtor.rets.util.RETSCompactHandler +
  +
RETSConfigurator - class org.realtor.rets.util.RETSConfigurator.
RETSConfigurator + Singleton to limit number of times BasicConfigurator.configure is called.
RETSConfigurator() - +Constructor for class org.realtor.rets.util.RETSConfigurator +
  +
RETSReplyCodes - class org.realtor.rets.util.RETSReplyCodes.
Handles the mapping of replyCodes to replyText
RETSReplyCodes() - +Constructor for class org.realtor.rets.util.RETSReplyCodes +
  +
RETSRequestResponse - class org.realtor.rets.util.RETSRequestResponse.
 
RETSRequestResponse() - +Constructor for class org.realtor.rets.util.RETSRequestResponse +
  +
RoofMultiValueFieldConversion - class org.realtor.rets.converters.RoofMultiValueFieldConversion.
RoofMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
RoofMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.RoofMultiValueFieldConversion +
  +
RoomMultiValueFieldConversion - class org.realtor.rets.converters.RoomMultiValueFieldConversion.
RoomMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
RoomMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.RoomMultiValueFieldConversion +
  +
run() - +Method in class org.realtor.rets.util.HealthCheck +
Method used to run the health check process in a seperate thread. +
run() - +Method in class org.realtor.rets.util.HealthCheck.Listener +
Method used to run the listener that is used to stop the health check process. +
+
+

+S

+
+
searchDirectories(String[], String) - +Static method in class org.realtor.rets.util.Resource +
  +
sendEmail(String) - +Method in class org.realtor.rets.util.HealthCheck +
Method used to send an email message through a SMTP host to an address. +
set(String, String) - +Static method in class org.realtor.rets.util.ResourceLocator +
  +
setMultiValue(boolean) - +Method in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
setOutputStream(OutputStream) - +Method in class org.realtor.rets.util.RETSCompactHandler +
  +
setPassword(String) - +Method in class org.realtor.rets.util.HealthCheck.EMailAuthenticator +
Sets the password. +
setRequestVariable(String, String) - +Method in class org.realtor.rets.util.RETSRequestResponse +
  +
setResponseVariable(String, String) - +Method in class org.realtor.rets.util.RETSRequestResponse +
  +
setUser(String) - +Method in class org.realtor.rets.util.HealthCheck.EMailAuthenticator +
Sets the user name. +
SidingMultiValueFieldConversion - class org.realtor.rets.converters.SidingMultiValueFieldConversion.
SidingMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
SidingMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.SidingMultiValueFieldConversion +
  +
split(String, String) - +Static method in class org.realtor.rets.util.Resource +
  +
sqlToJava(Object) - +Method in class org.realtor.rets.converters.BooleanToVarcharFieldConversion +
  +
sqlToJava(Object) - +Method in class org.realtor.rets.converters.BaseMultiValueFieldConversion +
  +
startChecker() - +Method in class org.realtor.rets.util.HealthCheck +
Method used to start the health checker thread. +
startDocument() - +Method in class org.realtor.rets.util.RETSCompactHandler +
  +
startElement(String, String, String, Attributes) - +Method in class org.realtor.rets.util.RETSCompactHandler +
  +
startElement(String, String, String, Attributes) - +Method in class org.realtor.rets.util.AttributeExtracter +
  +
startHealthCheck(String[]) - +Static method in class org.realtor.rets.util.HealthCheck +
Method used to start the health check process. +
stopChecker() - +Method in class org.realtor.rets.util.HealthCheck +
Method used to stop the health checker thread. +
stopHealthCheck(String[]) - +Static method in class org.realtor.rets.util.HealthCheck +
Method used to stop the health check process. +
stringp - +Variable in class org.realtor.rets.util.Base64Encoder +
  +
stringToDocument(String) - +Static method in class org.realtor.rets.util.XMLUtils +
  +
StyleMultiValueFieldConversion - class org.realtor.rets.converters.StyleMultiValueFieldConversion.
StyleMultiValueFieldConverter.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
StyleMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.StyleMultiValueFieldConversion +
  +
+
+

+T

+
+
textBuffer - +Variable in class org.realtor.rets.util.RETSCompactHandler +
  +
textBuffer - +Variable in class org.realtor.rets.util.AttributeExtracter +
  +
toString() - +Method in class org.realtor.rets.util.Resource +
  +
toURL() - +Method in class org.realtor.rets.util.Resource +
  +
transform - +Variable in class org.realtor.rets.util.DesCrypter +
  +
transformXml(String, String, OutputStream) - +Static method in class org.realtor.rets.util.XMLUtils +
  +
transformXml(String, String, OutputStream, Map) - +Static method in class org.realtor.rets.util.XMLUtils +
Does an xsl tranformation of an XML document and writes the result. +
transformXmlToString(String, String) - +Static method in class org.realtor.rets.util.XMLUtils +
  +
transformXmlToString(String, String, Map) - +Static method in class org.realtor.rets.util.XMLUtils +
Does an xsl tranformation of an XML document and returns a String result. +
tryClasspath(String) - +Method in class org.realtor.rets.util.Resource +
  +
tryLoader(String) - +Method in class org.realtor.rets.util.Resource +
  +
+
+

+U

+
+
url - +Variable in class org.realtor.rets.util.Resource +
  +
urlToFile(URL) - +Static method in class org.realtor.rets.util.Resource +
  +
+
+

+V

+
+
ViewDescriptionMultiValueFieldConversion - class org.realtor.rets.converters.ViewDescriptionMultiValueFieldConversion.
ViewDescriptionMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
ViewDescriptionMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.ViewDescriptionMultiValueFieldConversion +
  +
+
+

+W

+
+
WaterMultiValueFieldConversion - class org.realtor.rets.converters.WaterMultiValueFieldConversion.
WaterMultiValueFieldConverter.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
WaterMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.WaterMultiValueFieldConversion +
  +
+
+

+X

+
+
XMLUtils - class org.realtor.rets.util.XMLUtils.
Utilities for dealing with XML
XMLUtils() - +Constructor for class org.realtor.rets.util.XMLUtils +
  +
+
+

+Z

+
+
ZoningMultiValueFieldConversion - class org.realtor.rets.converters.ZoningMultiValueFieldConversion.
ZoningMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
ZoningMultiValueFieldConversion() - +Constructor for class org.realtor.rets.converters.ZoningMultiValueFieldConversion +
  +
+
+

+_

+
+
_addrs - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_checkingCnt - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_failureHasAccured - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_from - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_hcPort - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_mins - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_msg - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_password - +Variable in class org.realtor.rets.util.HealthCheck.EMailAuthenticator +
  +
_smtpHost - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_smtpPassword - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_smtpUser - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_startedChecking - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_url - +Variable in class org.realtor.rets.util.HealthCheck +
  +
_user - +Variable in class org.realtor.rets.util.HealthCheck.EMailAuthenticator +
  +
+
+A B C D E F G H I J L M N O P R S T U V W X Z _ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/index.html b/src/javadoc/index.html new file mode 100644 index 0000000..1dc8fe5 --- /dev/null +++ b/src/javadoc/index.html @@ -0,0 +1,25 @@ + + + + + + +RETS 1.5 Reference Impl + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + diff --git a/src/javadoc/org/realtor/rets/converters/AppliancesMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/AppliancesMultiValueFieldConversion.html new file mode 100644 index 0000000..9e2cea9 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/AppliancesMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +AppliancesMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class AppliancesMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.AppliancesMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class AppliancesMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+AppliancesMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
AppliancesMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+AppliancesMultiValueFieldConversion

+
+public AppliancesMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/BaseMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/BaseMultiValueFieldConversion.html new file mode 100644 index 0000000..8d1e119 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/BaseMultiValueFieldConversion.html @@ -0,0 +1,544 @@ + + + + + + +BaseMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class BaseMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
Direct Known Subclasses:
AppliancesMultiValueFieldConversion, BasementMultiValueFieldConversion, ExteriorMultiValueFieldConversion, FenceMultiValueFieldConversion, GarageMultiValueFieldConversion, HeatingSystemMultiValueFieldConversion, ListingStatusMultiValueFieldConversion, ListingTypeMultiValueFieldConversion, LockBoxMultiValueFieldConversion, OccupiedByMultiValueFieldConversion, PublicTransportationMultiValueFieldConversion, RoofMultiValueFieldConversion, RoomMultiValueFieldConversion, SidingMultiValueFieldConversion, StyleMultiValueFieldConversion, ViewDescriptionMultiValueFieldConversion, WaterMultiValueFieldConversion, ZoningMultiValueFieldConversion
+
+
+
+
public abstract class BaseMultiValueFieldConversion
extends java.lang.Object
implements MultiValueFieldConversion
+ +

+BaseMultiValueFieldConversion.java Created Jul 29, 2003 + Base class For multi value mappings. By default, this object will map each value and return a Vector, however + you can change this behavior if you only have one value in the database by calling setMultiValue(false) in your subclass's + constructor. This will make this object deal with strings instead of Vectors. + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  java.lang.Stringdelimiter + +
+           
+private  org.apache.commons.collections.DoubleOrderedMapmappings + +
+           
+protected  booleanmultiValue + +
+           
+  + + + + + + + + + + +
+Constructor Summary
BaseMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddMapping(java.lang.String dbValue, + java.lang.String humanValue) + +
+          Add a mapping to this object
+ java.util.VectorgetAllOptions() + +
+           
+private  java.util.VectorgetCommaSeparatedValues(java.lang.String sqlStr) + +
+           
+protected  org.apache.commons.collections.DoubleOrderedMapgetMappings() + +
+           
+private  java.util.VectorgetNonCommaSeparatedValues(java.lang.String sqlStr) + +
+           
+abstract  voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ booleanisMultiValue() + +
+           
+ java.lang.ObjectjavaToSql(java.lang.Object java) + +
+           
+ voidsetMultiValue(boolean b) + +
+           
+ java.lang.ObjectsqlToJava(java.lang.Object sql) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+mappings

+
+private org.apache.commons.collections.DoubleOrderedMap mappings
+
+
+
+
+
+ +

+delimiter

+
+protected java.lang.String delimiter
+
+
+
+
+
+ +

+multiValue

+
+protected boolean multiValue
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+BaseMultiValueFieldConversion

+
+public BaseMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+javaToSql

+
+public java.lang.Object javaToSql(java.lang.Object java)
+                           throws org.apache.ojb.broker.accesslayer.conversions.ConversionException
+
+
+
Specified by:
javaToSql in interface org.apache.ojb.broker.accesslayer.conversions.FieldConversion
+
+
+ +
org.apache.ojb.broker.accesslayer.conversions.ConversionException
+
+
+
+ +

+sqlToJava

+
+public java.lang.Object sqlToJava(java.lang.Object sql)
+                           throws org.apache.ojb.broker.accesslayer.conversions.ConversionException
+
+
+
Specified by:
sqlToJava in interface org.apache.ojb.broker.accesslayer.conversions.FieldConversion
+
+
+ +
org.apache.ojb.broker.accesslayer.conversions.ConversionException
+
+
+
+ +

+getCommaSeparatedValues

+
+private java.util.Vector getCommaSeparatedValues(java.lang.String sqlStr)
+
+
+
+
+
+
+
+
+
+ +

+getNonCommaSeparatedValues

+
+private java.util.Vector getNonCommaSeparatedValues(java.lang.String sqlStr)
+
+
+
+
+
+
+
+
+
+ +

+initializeMappings

+
+public abstract void initializeMappings()
+
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
+
+
+
+
+
+
+ +

+isMultiValue

+
+public boolean isMultiValue()
+
+
+
+
+
+ +
Returns:
+
+
+
+ +

+setMultiValue

+
+public void setMultiValue(boolean b)
+
+
+
+
+
+
Parameters:
b -
+
+
+
+ +

+addMapping

+
+public void addMapping(java.lang.String dbValue,
+                       java.lang.String humanValue)
+
+
Add a mapping to this object +

+

+
+
+
+
Parameters:
dbValue - The value as it appears in the database.
humanValue - The Human readable value that the DB value maps to.
+
+
+
+ +

+getMappings

+
+protected org.apache.commons.collections.DoubleOrderedMap getMappings()
+
+
+
+
+
+
+
+
+
+ +

+getAllOptions

+
+public java.util.Vector getAllOptions()
+
+
+
Specified by:
getAllOptions in interface MultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/BasementMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/BasementMultiValueFieldConversion.html new file mode 100644 index 0000000..0f72a77 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/BasementMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +BasementMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class BasementMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.BasementMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class BasementMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+BasementMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
BasementMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+BasementMultiValueFieldConversion

+
+public BasementMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/BooleanToVarcharFieldConversion.html b/src/javadoc/org/realtor/rets/converters/BooleanToVarcharFieldConversion.html new file mode 100644 index 0000000..436fe08 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/BooleanToVarcharFieldConversion.html @@ -0,0 +1,291 @@ + + + + + + +BooleanToVarcharFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class BooleanToVarcharFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BooleanToVarcharFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, java.io.Serializable
+
+
+
+
public class BooleanToVarcharFieldConversion
extends java.lang.Object
implements org.apache.ojb.broker.accesslayer.conversions.FieldConversion
+ +

+BooleanToVarcharFieldConversion.java Created Jul 24, 2003 + This object converts database values from their database values (either 'Y' , 'N' or null) + to a Java Boolean object. Database values can be of any case, as long as they are a single character, which is + a 'Y' or an 'N'. Null values (in the database) are interpreted as false. + All values coming from java and going to the database will be represented by an upper case "Y" or + an upper case "N". + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
BooleanToVarcharFieldConversion() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.ObjectjavaToSql(java.lang.Object obj) + +
+           
+ java.lang.ObjectsqlToJava(java.lang.Object sql) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+BooleanToVarcharFieldConversion

+
+public BooleanToVarcharFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+javaToSql

+
+public java.lang.Object javaToSql(java.lang.Object obj)
+                           throws org.apache.ojb.broker.accesslayer.conversions.ConversionException
+
+
+
Specified by:
javaToSql in interface org.apache.ojb.broker.accesslayer.conversions.FieldConversion
+
+
+ +
org.apache.ojb.broker.accesslayer.conversions.ConversionException
+
+
+
+ +

+sqlToJava

+
+public java.lang.Object sqlToJava(java.lang.Object sql)
+                           throws org.apache.ojb.broker.accesslayer.conversions.ConversionException
+
+
+
Specified by:
sqlToJava in interface org.apache.ojb.broker.accesslayer.conversions.FieldConversion
+
+
+ +
org.apache.ojb.broker.accesslayer.conversions.ConversionException
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/ExteriorMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/ExteriorMultiValueFieldConversion.html new file mode 100644 index 0000000..6bcaa74 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/ExteriorMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +ExteriorMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class ExteriorMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.ExteriorMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class ExteriorMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+ExteriorMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
ExteriorMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+ExteriorMultiValueFieldConversion

+
+public ExteriorMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/FenceMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/FenceMultiValueFieldConversion.html new file mode 100644 index 0000000..17280ae --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/FenceMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +FenceMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class FenceMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.FenceMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class FenceMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+FenceMultiValueFieldConversion.java Created Jul 29, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
FenceMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+FenceMultiValueFieldConversion

+
+public FenceMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/GarageMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/GarageMultiValueFieldConversion.html new file mode 100644 index 0000000..609a7e5 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/GarageMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +GarageMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class GarageMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.GarageMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class GarageMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+GarageMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
GarageMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+GarageMultiValueFieldConversion

+
+public GarageMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/HeatingSystemMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/HeatingSystemMultiValueFieldConversion.html new file mode 100644 index 0000000..6dd6cf6 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/HeatingSystemMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +HeatingSystemMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class HeatingSystemMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.HeatingSystemMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class HeatingSystemMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+HeatingTypeMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
HeatingSystemMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+HeatingSystemMultiValueFieldConversion

+
+public HeatingSystemMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/ListingStatusMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/ListingStatusMultiValueFieldConversion.html new file mode 100644 index 0000000..bc58ea3 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/ListingStatusMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +ListingStatusMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class ListingStatusMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.ListingStatusMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class ListingStatusMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+ListingStatusMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
ListingStatusMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+ListingStatusMultiValueFieldConversion

+
+public ListingStatusMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/ListingTypeMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/ListingTypeMultiValueFieldConversion.html new file mode 100644 index 0000000..4a3fa31 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/ListingTypeMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +ListingTypeMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class ListingTypeMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.ListingTypeMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class ListingTypeMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+ListingTypeMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
ListingTypeMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+ListingTypeMultiValueFieldConversion

+
+public ListingTypeMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/LockBoxMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/LockBoxMultiValueFieldConversion.html new file mode 100644 index 0000000..927b965 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/LockBoxMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +LockBoxMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class LockBoxMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.LockBoxMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class LockBoxMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+LockBoxMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
LockBoxMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+LockBoxMultiValueFieldConversion

+
+public LockBoxMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/MultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/MultiValueFieldConversion.html new file mode 100644 index 0000000..ab078d6 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/MultiValueFieldConversion.html @@ -0,0 +1,232 @@ + + + + + + +MultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Interface MultiValueFieldConversion

+
+
All Superinterfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, java.io.Serializable
+
+
+
All Known Implementing Classes:
BaseMultiValueFieldConversion
+
+
+
+
public interface MultiValueFieldConversion
extends org.apache.ojb.broker.accesslayer.conversions.FieldConversion
+ +

+MultiValueFieldConversion.java Created Aug 5, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.util.VectorgetAllOptions() + +
+           
+ + + + + + + +
Methods inherited from interface org.apache.ojb.broker.accesslayer.conversions.FieldConversion
javaToSql, sqlToJava
+  +

+ + + + + + + + + + + + + + +
+Method Detail
+ +

+getAllOptions

+
+public java.util.Vector getAllOptions()
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/OccupiedByMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/OccupiedByMultiValueFieldConversion.html new file mode 100644 index 0000000..348be74 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/OccupiedByMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +OccupiedByMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class OccupiedByMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.OccupiedByMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class OccupiedByMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+OccupiedByMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
OccupiedByMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+OccupiedByMultiValueFieldConversion

+
+public OccupiedByMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/PublicTransportationMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/PublicTransportationMultiValueFieldConversion.html new file mode 100644 index 0000000..b0fd322 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/PublicTransportationMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +PublicTransportationMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class PublicTransportationMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.PublicTransportationMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class PublicTransportationMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+PublicTransportationMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
PublicTransportationMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+PublicTransportationMultiValueFieldConversion

+
+public PublicTransportationMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/RoofMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/RoofMultiValueFieldConversion.html new file mode 100644 index 0000000..a07a89d --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/RoofMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +RoofMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class RoofMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.RoofMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class RoofMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+RoofMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
RoofMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+RoofMultiValueFieldConversion

+
+public RoofMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/RoomMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/RoomMultiValueFieldConversion.html new file mode 100644 index 0000000..f2cf097 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/RoomMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +RoomMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class RoomMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.RoomMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class RoomMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+RoomMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
RoomMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+RoomMultiValueFieldConversion

+
+public RoomMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/SidingMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/SidingMultiValueFieldConversion.html new file mode 100644 index 0000000..a0f13a7 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/SidingMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +SidingMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class SidingMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.SidingMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class SidingMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+SidingMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
SidingMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+SidingMultiValueFieldConversion

+
+public SidingMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/StyleMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/StyleMultiValueFieldConversion.html new file mode 100644 index 0000000..c0867d1 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/StyleMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +StyleMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class StyleMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.StyleMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class StyleMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+StyleMultiValueFieldConverter.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
StyleMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+StyleMultiValueFieldConversion

+
+public StyleMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/ViewDescriptionMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/ViewDescriptionMultiValueFieldConversion.html new file mode 100644 index 0000000..4623892 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/ViewDescriptionMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +ViewDescriptionMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class ViewDescriptionMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.ViewDescriptionMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class ViewDescriptionMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+ViewDescriptionMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
ViewDescriptionMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+ViewDescriptionMultiValueFieldConversion

+
+public ViewDescriptionMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/WaterMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/WaterMultiValueFieldConversion.html new file mode 100644 index 0000000..a2b654d --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/WaterMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +WaterMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class WaterMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.WaterMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class WaterMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+WaterMultiValueFieldConverter.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
WaterMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+WaterMultiValueFieldConversion

+
+public WaterMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/ZoningMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/ZoningMultiValueFieldConversion.html new file mode 100644 index 0000000..9290b7f --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/ZoningMultiValueFieldConversion.html @@ -0,0 +1,293 @@ + + + + + + +ZoningMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.converters +
+Class ZoningMultiValueFieldConversion

+
+java.lang.Object
+  |
+  +--org.realtor.rets.converters.BaseMultiValueFieldConversion
+        |
+        +--org.realtor.rets.converters.ZoningMultiValueFieldConversion
+
+
+
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.conversions.FieldConversion, MultiValueFieldConversion, java.io.Serializable
+
+
+
+
public class ZoningMultiValueFieldConversion
extends BaseMultiValueFieldConversion
+ +

+ZoningMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
delimiter, multiValue
+  + + + + + + + + + + +
+Constructor Summary
ZoningMultiValueFieldConversion() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinitializeMappings() + +
+          To implement this method, call addMapping for each mapping you would + like to add.
+ + + + + + + +
Methods inherited from class org.realtor.rets.converters.BaseMultiValueFieldConversion
addMapping, getAllOptions, getMappings, isMultiValue, javaToSql, setMultiValue, sqlToJava
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+ZoningMultiValueFieldConversion

+
+public ZoningMultiValueFieldConversion()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initializeMappings

+
+public void initializeMappings()
+
+
Description copied from class: BaseMultiValueFieldConversion
+
To implement this method, call addMapping for each mapping you would + like to add. +

+

+
Specified by:
initializeMappings in class BaseMultiValueFieldConversion
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/AppliancesMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/AppliancesMultiValueFieldConversion.html new file mode 100644 index 0000000..a2cb28e --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/AppliancesMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.AppliancesMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.AppliancesMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.AppliancesMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/BaseMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/BaseMultiValueFieldConversion.html new file mode 100644 index 0000000..d9f48c1 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/BaseMultiValueFieldConversion.html @@ -0,0 +1,351 @@ + + + + + + +Uses of Class org.realtor.rets.converters.BaseMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.BaseMultiValueFieldConversion

+
+ + + + + + + + + +
+Packages that use BaseMultiValueFieldConversion
org.realtor.rets.converters  
+  +

+ + + + + +
+Uses of BaseMultiValueFieldConversion in org.realtor.rets.converters
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of BaseMultiValueFieldConversion in org.realtor.rets.converters
+ classAppliancesMultiValueFieldConversion + +
+          AppliancesMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classBasementMultiValueFieldConversion + +
+          BasementMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classExteriorMultiValueFieldConversion + +
+          ExteriorMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classFenceMultiValueFieldConversion + +
+          FenceMultiValueFieldConversion.java Created Jul 29, 2003 + + + Copyright 2003, Avantia inc.
+ classGarageMultiValueFieldConversion + +
+          GarageMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classHeatingSystemMultiValueFieldConversion + +
+          HeatingTypeMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classListingStatusMultiValueFieldConversion + +
+          ListingStatusMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classListingTypeMultiValueFieldConversion + +
+          ListingTypeMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classLockBoxMultiValueFieldConversion + +
+          LockBoxMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classOccupiedByMultiValueFieldConversion + +
+          OccupiedByMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classPublicTransportationMultiValueFieldConversion + +
+          PublicTransportationMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classRoofMultiValueFieldConversion + +
+          RoofMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classRoomMultiValueFieldConversion + +
+          RoomMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classSidingMultiValueFieldConversion + +
+          SidingMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classStyleMultiValueFieldConversion + +
+          StyleMultiValueFieldConverter.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classViewDescriptionMultiValueFieldConversion + +
+          ViewDescriptionMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classWaterMultiValueFieldConversion + +
+          WaterMultiValueFieldConverter.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classZoningMultiValueFieldConversion + +
+          ZoningMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+  +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/BasementMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/BasementMultiValueFieldConversion.html new file mode 100644 index 0000000..9844bbb --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/BasementMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.BasementMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.BasementMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.BasementMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/BooleanToVarcharFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/BooleanToVarcharFieldConversion.html new file mode 100644 index 0000000..14dff56 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/BooleanToVarcharFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.BooleanToVarcharFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.BooleanToVarcharFieldConversion

+
+No usage of org.realtor.rets.converters.BooleanToVarcharFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/ExteriorMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/ExteriorMultiValueFieldConversion.html new file mode 100644 index 0000000..f232ebc --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/ExteriorMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.ExteriorMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.ExteriorMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.ExteriorMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/FenceMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/FenceMultiValueFieldConversion.html new file mode 100644 index 0000000..b9e6b2c --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/FenceMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.FenceMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.FenceMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.FenceMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/GarageMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/GarageMultiValueFieldConversion.html new file mode 100644 index 0000000..08d4bf6 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/GarageMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.GarageMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.GarageMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.GarageMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/HeatingSystemMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/HeatingSystemMultiValueFieldConversion.html new file mode 100644 index 0000000..e11db72 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/HeatingSystemMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.HeatingSystemMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.HeatingSystemMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.HeatingSystemMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/ListingStatusMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/ListingStatusMultiValueFieldConversion.html new file mode 100644 index 0000000..e880a96 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/ListingStatusMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.ListingStatusMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.ListingStatusMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.ListingStatusMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/ListingTypeMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/ListingTypeMultiValueFieldConversion.html new file mode 100644 index 0000000..046fd25 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/ListingTypeMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.ListingTypeMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.ListingTypeMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.ListingTypeMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/LockBoxMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/LockBoxMultiValueFieldConversion.html new file mode 100644 index 0000000..0eb9ad9 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/LockBoxMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.LockBoxMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.LockBoxMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.LockBoxMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/MultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/MultiValueFieldConversion.html new file mode 100644 index 0000000..fe1bfcb --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/MultiValueFieldConversion.html @@ -0,0 +1,360 @@ + + + + + + +Uses of Interface org.realtor.rets.converters.MultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Interface
org.realtor.rets.converters.MultiValueFieldConversion

+
+ + + + + + + + + +
+Packages that use MultiValueFieldConversion
org.realtor.rets.converters  
+  +

+ + + + + +
+Uses of MultiValueFieldConversion in org.realtor.rets.converters
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.realtor.rets.converters that implement MultiValueFieldConversion
+ classAppliancesMultiValueFieldConversion + +
+          AppliancesMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classBasementMultiValueFieldConversion + +
+          BasementMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classBaseMultiValueFieldConversion + +
+          BaseMultiValueFieldConversion.java Created Jul 29, 2003 + Base class For multi value mappings.
+ classExteriorMultiValueFieldConversion + +
+          ExteriorMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classFenceMultiValueFieldConversion + +
+          FenceMultiValueFieldConversion.java Created Jul 29, 2003 + + + Copyright 2003, Avantia inc.
+ classGarageMultiValueFieldConversion + +
+          GarageMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classHeatingSystemMultiValueFieldConversion + +
+          HeatingTypeMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classListingStatusMultiValueFieldConversion + +
+          ListingStatusMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classListingTypeMultiValueFieldConversion + +
+          ListingTypeMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classLockBoxMultiValueFieldConversion + +
+          LockBoxMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classOccupiedByMultiValueFieldConversion + +
+          OccupiedByMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classPublicTransportationMultiValueFieldConversion + +
+          PublicTransportationMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classRoofMultiValueFieldConversion + +
+          RoofMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classRoomMultiValueFieldConversion + +
+          RoomMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classSidingMultiValueFieldConversion + +
+          SidingMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classStyleMultiValueFieldConversion + +
+          StyleMultiValueFieldConverter.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classViewDescriptionMultiValueFieldConversion + +
+          ViewDescriptionMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classWaterMultiValueFieldConversion + +
+          WaterMultiValueFieldConverter.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+ classZoningMultiValueFieldConversion + +
+          ZoningMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+  +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/OccupiedByMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/OccupiedByMultiValueFieldConversion.html new file mode 100644 index 0000000..46e411a --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/OccupiedByMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.OccupiedByMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.OccupiedByMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.OccupiedByMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/PublicTransportationMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/PublicTransportationMultiValueFieldConversion.html new file mode 100644 index 0000000..716da16 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/PublicTransportationMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.PublicTransportationMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.PublicTransportationMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.PublicTransportationMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/RoofMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/RoofMultiValueFieldConversion.html new file mode 100644 index 0000000..5bcc58c --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/RoofMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.RoofMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.RoofMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.RoofMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/RoomMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/RoomMultiValueFieldConversion.html new file mode 100644 index 0000000..ed71ea4 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/RoomMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.RoomMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.RoomMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.RoomMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/SidingMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/SidingMultiValueFieldConversion.html new file mode 100644 index 0000000..b4a7b9f --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/SidingMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.SidingMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.SidingMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.SidingMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/StyleMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/StyleMultiValueFieldConversion.html new file mode 100644 index 0000000..8b6503b --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/StyleMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.StyleMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.StyleMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.StyleMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/ViewDescriptionMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/ViewDescriptionMultiValueFieldConversion.html new file mode 100644 index 0000000..521509d --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/ViewDescriptionMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.ViewDescriptionMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.ViewDescriptionMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.ViewDescriptionMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/WaterMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/WaterMultiValueFieldConversion.html new file mode 100644 index 0000000..4887613 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/WaterMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.WaterMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.WaterMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.WaterMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/class-use/ZoningMultiValueFieldConversion.html b/src/javadoc/org/realtor/rets/converters/class-use/ZoningMultiValueFieldConversion.html new file mode 100644 index 0000000..e79884a --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/class-use/ZoningMultiValueFieldConversion.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.converters.ZoningMultiValueFieldConversion (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.converters.ZoningMultiValueFieldConversion

+
+No usage of org.realtor.rets.converters.ZoningMultiValueFieldConversion +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/package-frame.html b/src/javadoc/org/realtor/rets/converters/package-frame.html new file mode 100644 index 0000000..02812cc --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/package-frame.html @@ -0,0 +1,82 @@ + + + + + + +org.realtor.rets.converters (RETS 1.5 Reference Impl) + + + + + + + +org.realtor.rets.converters + + + + +
+Interfaces  + +
+MultiValueFieldConversion
+ + + + + + +
+Classes  + +
+AppliancesMultiValueFieldConversion +
+BasementMultiValueFieldConversion +
+BaseMultiValueFieldConversion +
+BooleanToVarcharFieldConversion +
+ExteriorMultiValueFieldConversion +
+FenceMultiValueFieldConversion +
+GarageMultiValueFieldConversion +
+HeatingSystemMultiValueFieldConversion +
+ListingStatusMultiValueFieldConversion +
+ListingTypeMultiValueFieldConversion +
+LockBoxMultiValueFieldConversion +
+OccupiedByMultiValueFieldConversion +
+PublicTransportationMultiValueFieldConversion +
+RoofMultiValueFieldConversion +
+RoomMultiValueFieldConversion +
+SidingMultiValueFieldConversion +
+StyleMultiValueFieldConversion +
+ViewDescriptionMultiValueFieldConversion +
+WaterMultiValueFieldConversion +
+ZoningMultiValueFieldConversion
+ + + + diff --git a/src/javadoc/org/realtor/rets/converters/package-summary.html b/src/javadoc/org/realtor/rets/converters/package-summary.html new file mode 100644 index 0000000..02fb2de --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/package-summary.html @@ -0,0 +1,287 @@ + + + + + + +org.realtor.rets.converters (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+

+Package org.realtor.rets.converters +

+ + + + + + + + + +
+Interface Summary
MultiValueFieldConversionMultiValueFieldConversion.java Created Aug 5, 2003 + + + Copyright 2003, Avantia inc.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AppliancesMultiValueFieldConversionAppliancesMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
BasementMultiValueFieldConversionBasementMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
BaseMultiValueFieldConversionBaseMultiValueFieldConversion.java Created Jul 29, 2003 + Base class For multi value mappings.
BooleanToVarcharFieldConversionBooleanToVarcharFieldConversion.java Created Jul 24, 2003 + This object converts database values from their database values (either 'Y' , 'N' or null) + to a Java Boolean object.
ExteriorMultiValueFieldConversionExteriorMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
FenceMultiValueFieldConversionFenceMultiValueFieldConversion.java Created Jul 29, 2003 + + + Copyright 2003, Avantia inc.
GarageMultiValueFieldConversionGarageMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
HeatingSystemMultiValueFieldConversionHeatingTypeMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
ListingStatusMultiValueFieldConversionListingStatusMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
ListingTypeMultiValueFieldConversionListingTypeMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
LockBoxMultiValueFieldConversionLockBoxMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
OccupiedByMultiValueFieldConversionOccupiedByMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
PublicTransportationMultiValueFieldConversionPublicTransportationMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
RoofMultiValueFieldConversionRoofMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
RoomMultiValueFieldConversionRoomMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
SidingMultiValueFieldConversionSidingMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
StyleMultiValueFieldConversionStyleMultiValueFieldConverter.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
ViewDescriptionMultiValueFieldConversionViewDescriptionMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
WaterMultiValueFieldConversionWaterMultiValueFieldConverter.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
ZoningMultiValueFieldConversionZoningMultiValueFieldConversion.java Created Jul 31, 2003 + + + Copyright 2003, Avantia inc.
+  + +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/package-tree.html b/src/javadoc/org/realtor/rets/converters/package-tree.html new file mode 100644 index 0000000..7057adf --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/package-tree.html @@ -0,0 +1,147 @@ + + + + + + +org.realtor.rets.converters Class Hierarchy (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Hierarchy For Package org.realtor.rets.converters +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/converters/package-use.html b/src/javadoc/org/realtor/rets/converters/package-use.html new file mode 100644 index 0000000..4533ee5 --- /dev/null +++ b/src/javadoc/org/realtor/rets/converters/package-use.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Package org.realtor.rets.converters (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Package
org.realtor.rets.converters

+
+ + + + + + + + + +
+Packages that use org.realtor.rets.converters
org.realtor.rets.converters  
+  +

+ + + + + + + + + + + +
+Classes in org.realtor.rets.converters used by org.realtor.rets.converters
BaseMultiValueFieldConversion + +
+          BaseMultiValueFieldConversion.java Created Jul 29, 2003 + Base class For multi value mappings.
MultiValueFieldConversion + +
+          MultiValueFieldConversion.java Created Aug 5, 2003 + + + Copyright 2003, Avantia inc.
+  +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/AttributeExtracter.html b/src/javadoc/org/realtor/rets/util/AttributeExtracter.html new file mode 100644 index 0000000..9b7ece3 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/AttributeExtracter.html @@ -0,0 +1,377 @@ + + + + + + +AttributeExtracter (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class AttributeExtracter

+
+java.lang.Object
+  |
+  +--org.xml.sax.helpers.DefaultHandler
+        |
+        +--org.realtor.rets.util.AttributeExtracter
+
+
+
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
+
+
+
+
public class AttributeExtracter
extends org.xml.sax.helpers.DefaultHandler
+ +

+

+
Author:
+
tweber
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+private  java.lang.StringcurrentElement + +
+           
+private  java.lang.Stringdelim + +
+           
+(package private)  java.util.HashMapretHash + +
+           
+private  java.lang.StringBuffertextBuffer + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AttributeExtracter() + +
+          Creates a new instance of AttributeExtracter
+  + + + + + + + + + + + + + + + +
+Method Summary
+ java.util.HashMapgetHash() + +
+           
+ voidstartElement(java.lang.String namespaceURI, + java.lang.String sName, + java.lang.String qName, + org.xml.sax.Attributes attrs) + +
+           
+ + + + + + + +
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+delim

+
+private java.lang.String delim
+
+
+
+
+
+ +

+textBuffer

+
+private java.lang.StringBuffer textBuffer
+
+
+
+
+
+ +

+currentElement

+
+private java.lang.String currentElement
+
+
+
+
+
+ +

+retHash

+
+java.util.HashMap retHash
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AttributeExtracter

+
+public AttributeExtracter()
+
+
Creates a new instance of AttributeExtracter +

+

+ + + + + + + + +
+Method Detail
+ +

+startElement

+
+public void startElement(java.lang.String namespaceURI,
+                         java.lang.String sName,
+                         java.lang.String qName,
+                         org.xml.sax.Attributes attrs)
+                  throws org.xml.sax.SAXException
+
+
+
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
+
+
+ +
org.xml.sax.SAXException
+
+
+
+ +

+getHash

+
+public java.util.HashMap getHash()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/Base64Encoder.html b/src/javadoc/org/realtor/rets/util/Base64Encoder.html new file mode 100644 index 0000000..aefa1c2 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/Base64Encoder.html @@ -0,0 +1,513 @@ + + + + + + +Base64Encoder (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class Base64Encoder

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.Base64Encoder
+
+
+
+
public class Base64Encoder
extends java.lang.Object
+ +

+BASE64 encoder implementation. + This object takes as parameter an input stream and an output stream. It + encodes the input stream, using the BASE64 encoding rules, as defined + in MIME specification + and emit the resulting data to the output stream. +

+ +

+

+
See Also:
org.w3c.tools.codec.Base64Decoder
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+private static intBUFFER_SIZE + +
+           
+private static byte[]encoding + +
+           
+(package private)  java.io.InputStreamin + +
+           
+(package private)  java.io.OutputStreamout + +
+           
+(package private)  booleanstringp + +
+           
+  + + + + + + + + + + + + + +
+Constructor Summary
Base64Encoder(java.io.InputStream in, + java.io.OutputStream out) + +
+          Create a new Base64 encoder, encoding input to output.
Base64Encoder(java.lang.String input) + +
+          Create a new Base64 encoder, to encode the given string.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+private  intget1(byte[] buf, + int off) + +
+           
+private  intget2(byte[] buf, + int off) + +
+           
+private  intget3(byte[] buf, + int off) + +
+           
+private static intget4(byte[] buf, + int off) + +
+           
+static voidmain(java.lang.String[] args) + +
+          Testing the encoder.
+ voidprocess() + +
+          Process the data: encode the input stream to the output stream.
+ java.lang.StringprocessString() + +
+          Encode the content of this encoder, as a string.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+BUFFER_SIZE

+
+private static final int BUFFER_SIZE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+encoding

+
+private static byte[] encoding
+
+
+
+
+
+ +

+in

+
+java.io.InputStream in
+
+
+
+
+
+ +

+out

+
+java.io.OutputStream out
+
+
+
+
+
+ +

+stringp

+
+boolean stringp
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Base64Encoder

+
+public Base64Encoder(java.lang.String input)
+
+
Create a new Base64 encoder, to encode the given string. +

+

Parameters:
input - The String to be encoded.
+
+ +

+Base64Encoder

+
+public Base64Encoder(java.io.InputStream in,
+                     java.io.OutputStream out)
+
+
Create a new Base64 encoder, encoding input to output. +

+

Parameters:
in - The input stream to be encoded.
out - The output stream, to write encoded data to.
+ + + + + + + + +
+Method Detail
+ +

+get1

+
+private final int get1(byte[] buf,
+                       int off)
+
+
+
+
+
+
+ +

+get2

+
+private final int get2(byte[] buf,
+                       int off)
+
+
+
+
+
+
+ +

+get3

+
+private final int get3(byte[] buf,
+                       int off)
+
+
+
+
+
+
+ +

+get4

+
+private static final int get4(byte[] buf,
+                              int off)
+
+
+
+
+
+
+ +

+process

+
+public void process()
+             throws java.io.IOException
+
+
Process the data: encode the input stream to the output stream. + This method runs through the input stream, encoding it to the output + stream. +

+

+ +
Throws: +
java.io.IOException - If we weren't able to access the input stream or + the output stream.
+
+
+
+ +

+processString

+
+public java.lang.String processString()
+
+
Encode the content of this encoder, as a string. + This methods encode the String content, that was provided at creation + time, following the BASE64 rules, as specified in the rfc1521. +

+

+ +
Returns:
A String, reprenting the encoded content of the input String.
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] args)
+
+
Testing the encoder. + Run with one argument, prints the encoded version of it. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/Base64FormatException.html b/src/javadoc/org/realtor/rets/util/Base64FormatException.html new file mode 100644 index 0000000..731b0ee --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/Base64FormatException.html @@ -0,0 +1,259 @@ + + + + + + +Base64FormatException (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class Base64FormatException

+
+java.lang.Object
+  |
+  +--java.lang.Throwable
+        |
+        +--java.lang.Exception
+              |
+              +--org.realtor.rets.util.Base64FormatException
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Base64FormatException
extends java.lang.Exception
+ +

+Exception for invalid BASE64 streams. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class java.lang.Exception
+ + + + + + + +
Fields inherited from class java.lang.Throwable
+  + + + + + + + + + + +
+Constructor Summary
Base64FormatException(java.lang.String msg) + +
+          Create that kind of exception
+  + + + + + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+Base64FormatException

+
+public Base64FormatException(java.lang.String msg)
+
+
Create that kind of exception +

+

Parameters:
msg - The associated error message
+ + + + +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/CompactParser.html b/src/javadoc/org/realtor/rets/util/CompactParser.html new file mode 100644 index 0000000..81d5565 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/CompactParser.html @@ -0,0 +1,605 @@ + + + + + + +CompactParser (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class CompactParser

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.CompactParser
+
+
+
+
public class CompactParser
extends java.lang.Object
+ +

+CompactParser.java Created Aug 1, 2003 + This is a lightweight parser for RETS compact messages. It scans the compact message and loads + the keys and values into its internal data structure. The data can then be iterated over by calling the + nextColumn() method. + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+private  java.lang.Stringdelimiter + +
+           
+private  java.util.Iteratoriter + +
+           
+private  java.util.LinkedHashMapmap + +
+           
+  + + + + + + + + + + + + + + + + +
+Constructor Summary
CompactParser() + +
+           
CompactParser(java.lang.String rawXML) + +
+           
CompactParser(java.lang.String rawCompact, + java.lang.String metadataXML) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+private  java.lang.StringgetAttribute(java.lang.String attributeName, + java.lang.String tag) + +
+           
+ java.util.VectorgetColumns() + +
+          Returns a Vector conaining the names of the columns.
+ java.lang.StringgetData(java.lang.String key) + +
+          Returns the data contained in the column name represented by the String key
+ java.util.MapgetMapping() + +
+           
+private  java.lang.StringgetTag(java.lang.String tagName, + java.lang.String xml) + +
+           
+private  java.lang.StringgetTagBody(java.lang.String tagName, + java.lang.String xml) + +
+           
+static CompactParsergetTestInstance() + +
+           
+ booleanhasMoreColumns() + +
+          Tests whether or not there are more columns in the iteration.
+static voidmain(java.lang.String[] args) + +
+           
+private  voidmap(java.lang.String columns, + java.lang.String data) + +
+           
+ java.lang.StringnextColumn() + +
+          Get the next column in the sequence.
+private  voidparse(java.lang.String xml) + +
+           
+ voidreset() + +
+          resets the iterator to start at the first column
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+delimiter

+
+private java.lang.String delimiter
+
+
+
+
+
+ +

+map

+
+private java.util.LinkedHashMap map
+
+
+
+
+
+ +

+iter

+
+private java.util.Iterator iter
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+CompactParser

+
+public CompactParser()
+
+
+
+ +

+CompactParser

+
+public CompactParser(java.lang.String rawXML)
+
+
+
+ +

+CompactParser

+
+public CompactParser(java.lang.String rawCompact,
+                     java.lang.String metadataXML)
+
+
+ + + + + + + + +
+Method Detail
+ +

+reset

+
+public void reset()
+
+
resets the iterator to start at the first column +

+

+
+
+
+
+ +

+getColumns

+
+public java.util.Vector getColumns()
+
+
Returns a Vector conaining the names of the columns. +

+

+ +
Returns:
The names of the columns.
+
+
+
+ +

+hasMoreColumns

+
+public boolean hasMoreColumns()
+
+
Tests whether or not there are more columns in the iteration. +

+

+ +
Returns:
true if there are more columns waiting, false if there aren't.
+
+
+
+ +

+nextColumn

+
+public java.lang.String nextColumn()
+
+
Get the next column in the sequence. +

+

+ +
Returns:
A string whose value is the name of the next column, or null if there aren't any more columns.
+
+
+
+ +

+getData

+
+public java.lang.String getData(java.lang.String key)
+
+
Returns the data contained in the column name represented by the String key +

+

+
Parameters:
key - The name of the column whose data you wish to examine. +
Returns:
The data contained in the column, or null if no data is present.
+
+
+
+ +

+parse

+
+private void parse(java.lang.String xml)
+
+
+
+
+
+
+ +

+getTag

+
+private java.lang.String getTag(java.lang.String tagName,
+                                java.lang.String xml)
+
+
+
+
+
+
+ +

+getTagBody

+
+private java.lang.String getTagBody(java.lang.String tagName,
+                                    java.lang.String xml)
+
+
+
+
+
+
+ +

+getAttribute

+
+private java.lang.String getAttribute(java.lang.String attributeName,
+                                      java.lang.String tag)
+
+
+
+
+
+
+ +

+map

+
+private void map(java.lang.String columns,
+                 java.lang.String data)
+
+
+
+
+
+
+ +

+getMapping

+
+public java.util.Map getMapping()
+
+
+
+
+
+
+ +

+getTestInstance

+
+public static CompactParser getTestInstance()
+
+
+
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] args)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/DesCrypter.html b/src/javadoc/org/realtor/rets/util/DesCrypter.html new file mode 100644 index 0000000..6a3d07a --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/DesCrypter.html @@ -0,0 +1,328 @@ + + + + + + +DesCrypter (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class DesCrypter

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.DesCrypter
+
+
+
+
public class DesCrypter
extends java.lang.Object
+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+(package private)  javax.crypto.Cipherdcipher + +
+           
+(package private)  javax.crypto.Cipherecipher + +
+           
+(package private)  java.lang.Stringtransform + +
+           
+  + + + + + + + + + + +
+Constructor Summary
DesCrypter(byte[] keyBytes) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.Stringdecrypt(java.lang.String str) + +
+           
+ java.lang.Stringencrypt(java.lang.String str) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ecipher

+
+javax.crypto.Cipher ecipher
+
+
+
+
+
+ +

+dcipher

+
+javax.crypto.Cipher dcipher
+
+
+
+
+
+ +

+transform

+
+java.lang.String transform
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+DesCrypter

+
+public DesCrypter(byte[] keyBytes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+encrypt

+
+public java.lang.String encrypt(java.lang.String str)
+
+
+
+
+
+
+ +

+decrypt

+
+public java.lang.String decrypt(java.lang.String str)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/DigestUtil.html b/src/javadoc/org/realtor/rets/util/DigestUtil.html new file mode 100644 index 0000000..93ab4ca --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/DigestUtil.html @@ -0,0 +1,383 @@ + + + + + + +DigestUtil (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class DigestUtil

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.DigestUtil
+
+
+
+
public class DigestUtil
extends java.lang.Object
+ +

+

+
Version:
+
1.0
+
+
+ +

+ + + + + + + + + + + + + + +
+Field Summary
+(package private) static org.apache.log4j.Categorycat + +
+          log4j Category object
+  + + + + + + + + + + +
+Constructor Summary
DigestUtil() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static java.lang.StringDigest(java.lang.String value) + +
+           
+static java.lang.StringDigest(java.lang.String username, + java.lang.String realm, + java.lang.String password, + java.lang.String method, + java.lang.String uri, + java.lang.String nonce, + java.lang.String nc, + java.lang.String cnonce, + java.lang.String qop) + +
+           
+static java.lang.StringdigestAuthorization(java.lang.String username, + java.lang.String password, + java.lang.String method, + java.lang.String uri, + java.lang.String value) + +
+          Create digest Authentication String
+static java.util.MapparseAuthenticate(java.lang.String s) + +
+           
+static java.lang.StringremoveQuotes(java.lang.String quotedString) + +
+          Removes the quotes on a string.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+cat

+
+static org.apache.log4j.Category cat
+
+
log4j Category object +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+DigestUtil

+
+public DigestUtil()
+
+
+ + + + + + + + +
+Method Detail
+ +

+digestAuthorization

+
+public static java.lang.String digestAuthorization(java.lang.String username,
+                                                   java.lang.String password,
+                                                   java.lang.String method,
+                                                   java.lang.String uri,
+                                                   java.lang.String value)
+
+
Create digest Authentication String +

+

+
+
+
+
+ +

+parseAuthenticate

+
+public static java.util.Map parseAuthenticate(java.lang.String s)
+
+
+
+
+
+
+ +

+Digest

+
+public static java.lang.String Digest(java.lang.String username,
+                                      java.lang.String realm,
+                                      java.lang.String password,
+                                      java.lang.String method,
+                                      java.lang.String uri,
+                                      java.lang.String nonce,
+                                      java.lang.String nc,
+                                      java.lang.String cnonce,
+                                      java.lang.String qop)
+
+
+
+
+
+
+ +

+Digest

+
+public static java.lang.String Digest(java.lang.String value)
+
+
+
+
+
+
+ +

+removeQuotes

+
+public static java.lang.String removeQuotes(java.lang.String quotedString)
+
+
Removes the quotes on a string. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/HealthCheck.EMailAuthenticator.html b/src/javadoc/org/realtor/rets/util/HealthCheck.EMailAuthenticator.html new file mode 100644 index 0000000..235fe63 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/HealthCheck.EMailAuthenticator.html @@ -0,0 +1,416 @@ + + + + + + +HealthCheck.EMailAuthenticator (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class HealthCheck.EMailAuthenticator

+
+java.lang.Object
+  |
+  +--javax.mail.Authenticator
+        |
+        +--org.realtor.rets.util.HealthCheck.EMailAuthenticator
+
+
+
Enclosing class:
HealthCheck
+
+
+
+
private class HealthCheck.EMailAuthenticator
extends javax.mail.Authenticator
+ +

+This object is used to provide the Authenticator object required by JavaMail + when it connects to a SMTP mail server that is secured. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + +
+Field Summary
+private  java.lang.String_password + +
+           
+private  java.lang.String_user + +
+           
+ + + + + + + +
Fields inherited from class javax.mail.Authenticator
+  + + + + + + + + + + +
+Constructor Summary
HealthCheck.EMailAuthenticator() + +
+          Default constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+private  java.lang.StringgetPassword() + +
+          Gets the password.
+protected  javax.mail.PasswordAuthenticationgetPasswordAuthentication() + +
+          Gets the PasswordAuthentication object using the user name and password that + have been set in this object.
+private  java.lang.StringgetUser() + +
+          Gets the user name.
+ voidsetPassword(java.lang.String newPassword) + +
+          Sets the password.
+ voidsetUser(java.lang.String newUser) + +
+          Sets the user name.
+ + + + + + + +
Methods inherited from class javax.mail.Authenticator
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_user

+
+private java.lang.String _user
+
+
+
+
+
+ +

+_password

+
+private java.lang.String _password
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+HealthCheck.EMailAuthenticator

+
+public HealthCheck.EMailAuthenticator()
+
+
Default constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+getUser

+
+private java.lang.String getUser()
+
+
Gets the user name. +

+

+ +
Returns:
String - The user name.
+
+
+
+ +

+getPassword

+
+private java.lang.String getPassword()
+
+
Gets the password. +

+

+ +
Returns:
String - The password.
+
+
+
+ +

+setUser

+
+public void setUser(java.lang.String newUser)
+
+
Sets the user name. +

+

+
+
+
+
+ +

+setPassword

+
+public void setPassword(java.lang.String newPassword)
+
+
Sets the password. +

+

+
+
+
+
+ +

+getPasswordAuthentication

+
+protected javax.mail.PasswordAuthentication getPasswordAuthentication()
+
+
Gets the PasswordAuthentication object using the user name and password that + have been set in this object. +

+

+
Overrides:
getPasswordAuthentication in class javax.mail.Authenticator
+
+
+ +
Returns:
PasswordAuthentication - The default authentication object with the + user name and password.
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/HealthCheck.Listener.html b/src/javadoc/org/realtor/rets/util/HealthCheck.Listener.html new file mode 100644 index 0000000..55b0170 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/HealthCheck.Listener.html @@ -0,0 +1,286 @@ + + + + + + +HealthCheck.Listener (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class HealthCheck.Listener

+
+java.lang.Object
+  |
+  +--java.lang.Thread
+        |
+        +--org.realtor.rets.util.HealthCheck.Listener
+
+
+
All Implemented Interfaces:
java.lang.Runnable
+
+
+
Enclosing class:
HealthCheck
+
+
+
+
private class HealthCheck.Listener
extends java.lang.Thread
+ +

+This object is used to listen to a port for a stop request. +

+ +

+


+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
+  + + + + + + + + + + +
+Constructor Summary
HealthCheck.Listener() + +
+          Default constructor.
+  + + + + + + + + + + + +
+Method Summary
+ voidrun() + +
+          Method used to run the listener that is used to stop the health check process.
+ + + + + + + +
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+HealthCheck.Listener

+
+public HealthCheck.Listener()
+
+
Default constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+run

+
+public void run()
+
+
Method used to run the listener that is used to stop the health check process. +

+

+
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/HealthCheck.html b/src/javadoc/org/realtor/rets/util/HealthCheck.html new file mode 100644 index 0000000..4dde98a --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/HealthCheck.html @@ -0,0 +1,882 @@ + + + + + + +HealthCheck (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class HealthCheck

+
+java.lang.Object
+  |
+  +--java.lang.Thread
+        |
+        +--org.realtor.rets.util.HealthCheck
+
+
+
All Implemented Interfaces:
java.lang.Runnable
+
+
+
+
public class HealthCheck
extends java.lang.Thread
+ +

+A class that checks the status of the supplied url and sends a supplied + notification to the supplied email addresses if there is any kind of failure. +

+ +

+

+
Version:
+
1.0
+
Author:
+
Eric Glass
+
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+private  classHealthCheck.EMailAuthenticator + +
+          This object is used to provide the Authenticator object required by JavaMail + when it connects to a SMTP mail server that is secured.
+private  classHealthCheck.Listener + +
+          This object is used to listen to a port for a stop request.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+private  java.lang.String_addrs + +
+           
+private  int_checkingCnt + +
+           
+private  boolean_failureHasAccured + +
+           
+private  java.lang.String_from + +
+           
+private  int_hcPort + +
+           
+private  int_mins + +
+           
+private  java.lang.String_msg + +
+           
+private  java.lang.String_smtpHost + +
+           
+private  java.lang.String_smtpPassword + +
+           
+private  java.lang.String_smtpUser + +
+           
+private  boolean_startedChecking + +
+           
+private  java.lang.String_url + +
+           
+static java.lang.StringPROPERTIES_FILE + +
+           
+static java.lang.StringPROPERTY_CHECK_EVERY_MINUTES + +
+           
+static java.lang.StringPROPERTY_CHECK_URL + +
+           
+static java.lang.StringPROPERTY_FAILURE_EMAIL_ADDRESSES + +
+           
+static java.lang.StringPROPERTY_FAILURE_MESSAGE + +
+           
+static java.lang.StringPROPERTY_FROM_EMAIL_ADDRESS + +
+           
+static java.lang.StringPROPERTY_HEALTH_CHECK_PORT + +
+           
+static java.lang.StringPROPERTY_SMTP_AUTHENT_PASSWORD + +
+           
+static java.lang.StringPROPERTY_SMTP_AUTHENT_USER + +
+           
+static java.lang.StringPROPERTY_SMTP_HOST_ADDRESS + +
+           
+ + + + + + + +
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
+  + + + + + + + + + + + + + +
+Constructor Summary
HealthCheck() + +
+          Constructor for HealthCheck.
HealthCheck(java.lang.String name) + +
+          Constructor for HealthCheck.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+private  voidgetProperties() + +
+          Get the properties needed by HealthCheck.
+static voidmain(java.lang.String[] args) + +
+          Method used to test this class.
+ voidrun() + +
+          Method used to run the health check process in a seperate thread.
+private  booleansendEmail(java.lang.String address) + +
+          Method used to send an email message through a SMTP host to an address.
+ booleanstartChecker() + +
+          Method used to start the health checker thread.
+static voidstartHealthCheck(java.lang.String[] args) + +
+          Method used to start the health check process.
+ voidstopChecker() + +
+          Method used to stop the health checker thread.
+static voidstopHealthCheck(java.lang.String[] args) + +
+          Method used to stop the health check process.
+ + + + + + + +
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+PROPERTIES_FILE

+
+public static final java.lang.String PROPERTIES_FILE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_CHECK_URL

+
+public static final java.lang.String PROPERTY_CHECK_URL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_CHECK_EVERY_MINUTES

+
+public static final java.lang.String PROPERTY_CHECK_EVERY_MINUTES
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_SMTP_HOST_ADDRESS

+
+public static final java.lang.String PROPERTY_SMTP_HOST_ADDRESS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_SMTP_AUTHENT_USER

+
+public static final java.lang.String PROPERTY_SMTP_AUTHENT_USER
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_SMTP_AUTHENT_PASSWORD

+
+public static final java.lang.String PROPERTY_SMTP_AUTHENT_PASSWORD
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_FROM_EMAIL_ADDRESS

+
+public static final java.lang.String PROPERTY_FROM_EMAIL_ADDRESS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_FAILURE_EMAIL_ADDRESSES

+
+public static final java.lang.String PROPERTY_FAILURE_EMAIL_ADDRESSES
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_FAILURE_MESSAGE

+
+public static final java.lang.String PROPERTY_FAILURE_MESSAGE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_HEALTH_CHECK_PORT

+
+public static final java.lang.String PROPERTY_HEALTH_CHECK_PORT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+_url

+
+private java.lang.String _url
+
+
+
+
+
+ +

+_mins

+
+private int _mins
+
+
+
+
+
+ +

+_smtpHost

+
+private java.lang.String _smtpHost
+
+
+
+
+
+ +

+_smtpUser

+
+private java.lang.String _smtpUser
+
+
+
+
+
+ +

+_smtpPassword

+
+private java.lang.String _smtpPassword
+
+
+
+
+
+ +

+_from

+
+private java.lang.String _from
+
+
+
+
+
+ +

+_addrs

+
+private java.lang.String _addrs
+
+
+
+
+
+ +

+_msg

+
+private java.lang.String _msg
+
+
+
+
+
+ +

+_failureHasAccured

+
+private boolean _failureHasAccured
+
+
+
+
+
+ +

+_startedChecking

+
+private boolean _startedChecking
+
+
+
+
+
+ +

+_checkingCnt

+
+private int _checkingCnt
+
+
+
+
+
+ +

+_hcPort

+
+private int _hcPort
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+HealthCheck

+
+public HealthCheck()
+
+
Constructor for HealthCheck. +

+

+
+ +

+HealthCheck

+
+public HealthCheck(java.lang.String name)
+
+
Constructor for HealthCheck. +

+

+ + + + + + + + +
+Method Detail
+ +

+getProperties

+
+private void getProperties()
+
+
Get the properties needed by HealthCheck. +

+

+
+
+
+
+ +

+startHealthCheck

+
+public static void startHealthCheck(java.lang.String[] args)
+
+
Method used to start the health check process. +

+

+
+
+
+
+ +

+startChecker

+
+public boolean startChecker()
+
+
Method used to start the health checker thread. +

+

+ +
Returns:
boolean - True if the health checker thread was started properly; + otherwise it will be False.
+
+
+
+ +

+stopHealthCheck

+
+public static void stopHealthCheck(java.lang.String[] args)
+
+
Method used to stop the health check process. +

+

+
+
+
+
+ +

+stopChecker

+
+public void stopChecker()
+
+
Method used to stop the health checker thread. +

+

+
+
+
+
+ +

+run

+
+public void run()
+
+
Method used to run the health check process in a seperate thread. +

+

+
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
+
+
+
+
+
+
+ +

+sendEmail

+
+private boolean sendEmail(java.lang.String address)
+
+
Method used to send an email message through a SMTP host to an address. +

+

+ +
Returns:
boolean - True if the message was sent successfully, otherwise False.
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] args)
+
+
Method used to test this class. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/HexUtils.html b/src/javadoc/org/realtor/rets/util/HexUtils.html new file mode 100644 index 0000000..5a359e6 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/HexUtils.html @@ -0,0 +1,295 @@ + + + + + + +HexUtils (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class HexUtils

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.HexUtils
+
+
+
+
public final class HexUtils
extends java.lang.Object
+ +

+


+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
HexUtils() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static java.lang.Stringconvert(byte[] bytes) + +
+          Convert a byte array into a printable format containing a + String of hexadecimal digit characters (two per byte).
+static byte[]convert(java.lang.String digits) + +
+          Convert a String of hexadecimal digits into the corresponding + byte array by encoding each two hexadecimal digits as a byte.
+private static charconvertDigit(int value) + +
+          [Private] Convert the specified value (0 ..
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+HexUtils

+
+public HexUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+convert

+
+public static byte[] convert(java.lang.String digits)
+
+
Convert a String of hexadecimal digits into the corresponding + byte array by encoding each two hexadecimal digits as a byte. +

+

+
Parameters:
digits - Hexadecimal digits representation +
Throws: +
java.lang.IllegalArgumentException - if an invalid hexadecimal digit + is found, or the input string contains an odd number of hexadecimal + digits
+
+
+
+ +

+convert

+
+public static java.lang.String convert(byte[] bytes)
+
+
Convert a byte array into a printable format containing a + String of hexadecimal digit characters (two per byte). +

+

+
Parameters:
bytes - Byte array representation
+
+
+
+ +

+convertDigit

+
+private static char convertDigit(int value)
+
+
[Private] Convert the specified value (0 .. 15) to the corresponding + hexadecimal digit. +

+

+
Parameters:
value - Value to be converted
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/MD5Util.html b/src/javadoc/org/realtor/rets/util/MD5Util.html new file mode 100644 index 0000000..f9cff2e --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/MD5Util.html @@ -0,0 +1,292 @@ + + + + + + +MD5Util (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class MD5Util

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.MD5Util
+
+
+
+
public class MD5Util
extends java.lang.Object
+ +

+

+
Version:
+
1.0
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
MD5Util() + +
+          Creates new MD5Util
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+private static java.lang.StringconvertToHex(byte[] source) + +
+          Returns the HEX representation of a byte array
+static java.lang.StringgetDigestAsHexString(byte[] source) + +
+          returns MD5 HEX value for a given a byte array
+static java.lang.StringgetDigestAsHexString(java.lang.String source) + +
+          returns MD5 HEX value for a given string
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+MD5Util

+
+public MD5Util()
+
+
Creates new MD5Util +

+

+ + + + + + + + +
+Method Detail
+ +

+getDigestAsHexString

+
+public static java.lang.String getDigestAsHexString(java.lang.String source)
+
+
returns MD5 HEX value for a given string +

+

+
Parameters:
source - string to convert
+
+
+
+ +

+getDigestAsHexString

+
+public static java.lang.String getDigestAsHexString(byte[] source)
+
+
returns MD5 HEX value for a given a byte array +

+

+
Parameters:
source - byte array to convert
+
+
+
+ +

+convertToHex

+
+private static java.lang.String convertToHex(byte[] source)
+
+
Returns the HEX representation of a byte array +

+

+
Parameters:
source - byte array to convert to HEX
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/PropertiesLocator.html b/src/javadoc/org/realtor/rets/util/PropertiesLocator.html new file mode 100644 index 0000000..12492ff --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/PropertiesLocator.html @@ -0,0 +1,257 @@ + + + + + + +PropertiesLocator (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class PropertiesLocator

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.PropertiesLocator
+
+
+
+
public class PropertiesLocator
extends java.lang.Object
+ +

+PropertiesLocator.java Created Aug 6, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
PropertiesLocator() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static java.util.PropertieslocateProperties(java.lang.String fileName) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+PropertiesLocator

+
+public PropertiesLocator()
+
+
+ + + + + + + + +
+Method Detail
+ +

+locateProperties

+
+public static java.util.Properties locateProperties(java.lang.String fileName)
+                                             throws PropertiesNotFoundException
+
+
+ +
PropertiesNotFoundException
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/PropertiesNotFoundException.html b/src/javadoc/org/realtor/rets/util/PropertiesNotFoundException.html new file mode 100644 index 0000000..ff4fad1 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/PropertiesNotFoundException.html @@ -0,0 +1,264 @@ + + + + + + +PropertiesNotFoundException (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class PropertiesNotFoundException

+
+java.lang.Object
+  |
+  +--java.lang.Throwable
+        |
+        +--java.lang.Exception
+              |
+              +--org.realtor.rets.util.PropertiesNotFoundException
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class PropertiesNotFoundException
extends java.lang.Exception
+ +

+PropertiesNotFoundException.java Created Aug 6, 2003 + + + Copyright 2003, Avantia inc. +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
scohen
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class java.lang.Exception
+ + + + + + + +
Fields inherited from class java.lang.Throwable
+  + + + + + + + + + + +
+Constructor Summary
PropertiesNotFoundException(java.lang.String message) + +
+           
+  + + + + + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+PropertiesNotFoundException

+
+public PropertiesNotFoundException(java.lang.String message)
+
+
+ + + + +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/RETSCompactHandler.html b/src/javadoc/org/realtor/rets/util/RETSCompactHandler.html new file mode 100644 index 0000000..c31fbeb --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/RETSCompactHandler.html @@ -0,0 +1,557 @@ + + + + + + +RETSCompactHandler (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class RETSCompactHandler

+
+java.lang.Object
+  |
+  +--org.xml.sax.helpers.DefaultHandler
+        |
+        +--org.realtor.rets.util.RETSCompactHandler
+
+
+
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
+
+
+
+
public class RETSCompactHandler
extends org.xml.sax.helpers.DefaultHandler
+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+private  java.lang.StringcurrentElement + +
+           
+private  java.lang.Stringdelim + +
+           
+private  java.io.OutputStreamos + +
+           
+private  java.lang.StringBuffertextBuffer + +
+           
+  + + + + + + + + + + +
+Constructor Summary
RETSCompactHandler() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcharacters(char[] buf, + int offset, + int len) + +
+           
+private  voidemit(java.lang.String s) + +
+           
+ voidendDocument() + +
+           
+ voidendElement(java.lang.String namespaceURI, + java.lang.String sName, + java.lang.String qName) + +
+           
+static voidmain(java.lang.String[] args) + +
+           
+private  voidnl() + +
+           
+ voidparseText(java.lang.String text) + +
+           
+ voidsetOutputStream(java.io.OutputStream p_os) + +
+           
+ voidstartDocument() + +
+           
+ voidstartElement(java.lang.String namespaceURI, + java.lang.String sName, + java.lang.String qName, + org.xml.sax.Attributes attrs) + +
+           
+ + + + + + + +
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+os

+
+private java.io.OutputStream os
+
+
+
+
+
+ +

+delim

+
+private java.lang.String delim
+
+
+
+
+
+ +

+textBuffer

+
+private java.lang.StringBuffer textBuffer
+
+
+
+
+
+ +

+currentElement

+
+private java.lang.String currentElement
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RETSCompactHandler

+
+public RETSCompactHandler()
+
+
+ + + + + + + + +
+Method Detail
+ +

+setOutputStream

+
+public void setOutputStream(java.io.OutputStream p_os)
+
+
+
+
+
+
+ +

+nl

+
+private void nl()
+         throws org.xml.sax.SAXException
+
+
+ +
org.xml.sax.SAXException
+
+
+
+ +

+emit

+
+private void emit(java.lang.String s)
+           throws org.xml.sax.SAXException
+
+
+ +
org.xml.sax.SAXException
+
+
+
+ +

+startDocument

+
+public void startDocument()
+                   throws org.xml.sax.SAXException
+
+
+
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
+
+
+ +
org.xml.sax.SAXException
+
+
+
+ +

+endDocument

+
+public void endDocument()
+                 throws org.xml.sax.SAXException
+
+
+
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
+
+
+ +
org.xml.sax.SAXException
+
+
+
+ +

+startElement

+
+public void startElement(java.lang.String namespaceURI,
+                         java.lang.String sName,
+                         java.lang.String qName,
+                         org.xml.sax.Attributes attrs)
+                  throws org.xml.sax.SAXException
+
+
+
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
+
+
+ +
org.xml.sax.SAXException
+
+
+
+ +

+endElement

+
+public void endElement(java.lang.String namespaceURI,
+                       java.lang.String sName,
+                       java.lang.String qName)
+                throws org.xml.sax.SAXException
+
+
+
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
+
+
+ +
org.xml.sax.SAXException
+
+
+
+ +

+characters

+
+public void characters(char[] buf,
+                       int offset,
+                       int len)
+                throws org.xml.sax.SAXException
+
+
+
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
+
+
+ +
org.xml.sax.SAXException
+
+
+
+ +

+parseText

+
+public void parseText(java.lang.String text)
+               throws org.xml.sax.SAXException
+
+
+ +
org.xml.sax.SAXException
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] args)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/RETSConfigurator.html b/src/javadoc/org/realtor/rets/util/RETSConfigurator.html new file mode 100644 index 0000000..4f09281 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/RETSConfigurator.html @@ -0,0 +1,282 @@ + + + + + + +RETSConfigurator (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class RETSConfigurator

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.RETSConfigurator
+
+
+
+
public class RETSConfigurator
extends java.lang.Object
+ +

+RETSConfigurator + Singleton to limit number of times BasicConfigurator.configure is called. +

+ +

+


+ +

+ + + + + + + + + + + + + + +
+Field Summary
+(package private) static booleanconfigured + +
+           
+  + + + + + + + + + + + +
+Constructor Summary
+private RETSConfigurator() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static voidconfigure() + +
+          calls BasicConfigurator.configure() only once
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+configured

+
+static boolean configured
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RETSConfigurator

+
+private RETSConfigurator()
+
+
+ + + + + + + + +
+Method Detail
+ +

+configure

+
+public static void configure()
+
+
calls BasicConfigurator.configure() only once +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/RETSReplyCodes.html b/src/javadoc/org/realtor/rets/util/RETSReplyCodes.html new file mode 100644 index 0000000..9efb48e --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/RETSReplyCodes.html @@ -0,0 +1,308 @@ + + + + + + +RETSReplyCodes (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class RETSReplyCodes

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.RETSReplyCodes
+
+
+
+
public class RETSReplyCodes
extends java.lang.Object
+ +

+Handles the mapping of replyCodes to replyText +

+ +

+

+
Version:
+
$Revision: 1.1 $
+
Author:
+
$Author: rsegelman $
+
+
+ +

+ + + + + + + + + + + + + + + + + + +
+Field Summary
+(package private) static org.apache.log4j.Categorycat + +
+          log4j Category object
+(package private) static java.util.Propertiesprop + +
+          holds the Properties (Codes->Text) that are loaded at startup.
+  + + + + + + + + + + +
+Constructor Summary
RETSReplyCodes() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static java.lang.Stringget(java.lang.String code) + +
+          get the ReplyText mapped by the ReplyCode
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+cat

+
+static org.apache.log4j.Category cat
+
+
log4j Category object +

+

+
+
+
+ +

+prop

+
+static java.util.Properties prop
+
+
holds the Properties (Codes->Text) that are loaded at startup. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RETSReplyCodes

+
+public RETSReplyCodes()
+
+
+ + + + + + + + +
+Method Detail
+ +

+get

+
+public static java.lang.String get(java.lang.String code)
+
+
get the ReplyText mapped by the ReplyCode +

+

+
Parameters:
code - error code +
Returns:
String of text mapped from code
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/RETSRequestResponse.html b/src/javadoc/org/realtor/rets/util/RETSRequestResponse.html new file mode 100644 index 0000000..35c8376 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/RETSRequestResponse.html @@ -0,0 +1,475 @@ + + + + + + +RETSRequestResponse (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class RETSRequestResponse

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.RETSRequestResponse
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class RETSRequestResponse
extends java.lang.Object
implements java.io.Serializable
+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+(package private) static org.apache.log4j.Categorycat + +
+           
+private  java.util.HashMapreq + +
+           
+private  java.util.HashMapresp + +
+           
+  + + + + + + + + + + +
+Constructor Summary
RETSRequestResponse() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddToRequestMap(java.util.Map m) + +
+           
+ voidaddToResponseMap(java.util.Map m) + +
+           
+ java.util.MapgetRequestMap() + +
+           
+ java.lang.StringgetRequestVariable(java.lang.String key) + +
+           
+ java.util.MapgetResponseMap() + +
+           
+ java.lang.StringgetResponseVariable(java.lang.String key) + +
+           
+ voidsetRequestVariable(java.lang.String key, + java.lang.String value) + +
+           
+ voidsetResponseVariable(java.lang.String key, + java.lang.String value) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+cat

+
+static org.apache.log4j.Category cat
+
+
+
+
+
+ +

+req

+
+private java.util.HashMap req
+
+
+
+
+
+ +

+resp

+
+private java.util.HashMap resp
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RETSRequestResponse

+
+public RETSRequestResponse()
+
+
+ + + + + + + + +
+Method Detail
+ +

+setRequestVariable

+
+public void setRequestVariable(java.lang.String key,
+                               java.lang.String value)
+
+
+
+
+
+
+
+
+
+ +

+getRequestVariable

+
+public java.lang.String getRequestVariable(java.lang.String key)
+
+
+
+
+
+
+
+
+
+ +

+getRequestMap

+
+public java.util.Map getRequestMap()
+
+
+
+
+
+
+
+
+
+ +

+addToRequestMap

+
+public void addToRequestMap(java.util.Map m)
+
+
+
+
+
+
+
+
+
+ +

+setResponseVariable

+
+public void setResponseVariable(java.lang.String key,
+                                java.lang.String value)
+
+
+
+
+
+
+
+
+
+ +

+getResponseVariable

+
+public java.lang.String getResponseVariable(java.lang.String key)
+
+
+
+
+
+
+
+
+
+ +

+getResponseMap

+
+public java.util.Map getResponseMap()
+
+
+
+
+
+
+
+
+
+ +

+addToResponseMap

+
+public void addToResponseMap(java.util.Map m)
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/Resource.html b/src/javadoc/org/realtor/rets/util/Resource.html new file mode 100644 index 0000000..d826089 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/Resource.html @@ -0,0 +1,570 @@ + + + + + + +Resource (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class Resource

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.Resource
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Resource
extends java.lang.Object
implements java.io.Serializable
+ +

+A class to locate resources, retrieve their contents, and determine their + last modified time. To find the resource the class searches the CLASSPATH + first, then Resource.class.getResource("/" + name). If the Resource finds + a "file:" URL then the file path will be treated as a file. Otherwise the + path is treated as a URL and has limited last modified info. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+private  java.io.Filefile + +
+           
+private  java.lang.Stringname + +
+           
+private  java.net.URLurl + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Resource(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetDirectory() + +
+          Returns the directory containing the resource, or null if the resource + isn't directly available on the filesystem.
+ java.io.InputStreamgetInputStream() + +
+          Returns an input stream to read the resource contents.
+ java.lang.StringgetName() + +
+          Returns the resource name, as passed to the constructor.
+ longlastModified() + +
+          Returns when the resource was last modified.
+private static java.io.FilesearchDirectories(java.lang.String[] paths, + java.lang.String filename) + +
+           
+private static java.lang.String[]split(java.lang.String str, + java.lang.String delim) + +
+           
+ java.lang.StringtoString() + +
+           
+ java.net.URLtoURL() + +
+           
+private  booleantryClasspath(java.lang.String filename) + +
+           
+private  booleantryLoader(java.lang.String name) + +
+           
+private static java.io.FileurlToFile(java.net.URL res) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+name

+
+private java.lang.String name
+
+
+
+
+
+ +

+file

+
+private java.io.File file
+
+
+
+
+
+ +

+url

+
+private java.net.URL url
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Resource

+
+public Resource(java.lang.String name)
+         throws java.io.IOException
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public java.lang.String getName()
+
+
Returns the resource name, as passed to the constructor. +

+

+
+
+
+
+
+
+
+ +

+getInputStream

+
+public java.io.InputStream getInputStream()
+                                   throws java.io.IOException
+
+
Returns an input stream to read the resource contents. +

+

+
+
+
+ +
java.io.IOException
+
+
+
+ +

+lastModified

+
+public long lastModified()
+
+
Returns when the resource was last modified. If the resource was found + using a URL, this method will only work if the URL connection supports + last modified information. If there's no support, Long.MAX_VALUE is + returned. Perhaps this should return -1 but we return MAX_VALUE on + the assumption that if you can't determine the time, assume it's + maximally new. +

+

+
+
+
+
+
+
+
+ +

+getDirectory

+
+public java.lang.String getDirectory()
+
+
Returns the directory containing the resource, or null if the resource + isn't directly available on the filesystem. This value can be used to + locate the config file on disk or write files in the same directory. +

+

+
+
+
+
+
+
+
+ +

+tryClasspath

+
+private boolean tryClasspath(java.lang.String filename)
+
+
+
+
+
+
+
+
+
+ +

+searchDirectories

+
+private static java.io.File searchDirectories(java.lang.String[] paths,
+                                              java.lang.String filename)
+
+
+
+
+
+
+
+
+
+ +

+split

+
+private static java.lang.String[] split(java.lang.String str,
+                                        java.lang.String delim)
+
+
+
+
+
+
+
+
+
+ +

+tryLoader

+
+private boolean tryLoader(java.lang.String name)
+
+
+
+
+
+
+
+
+
+ +

+urlToFile

+
+private static java.io.File urlToFile(java.net.URL res)
+
+
+
+
+
+
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+
+ +

+toURL

+
+public java.net.URL toURL()
+                   throws java.net.MalformedURLException
+
+
+
+
+
+ +
java.net.MalformedURLException
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/ResourceLocator.html b/src/javadoc/org/realtor/rets/util/ResourceLocator.html new file mode 100644 index 0000000..7617487 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/ResourceLocator.html @@ -0,0 +1,320 @@ + + + + + + +ResourceLocator (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class ResourceLocator

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.ResourceLocator
+
+
+
+
public class ResourceLocator
extends java.lang.Object
+ +

+

+
Author:
+
rsegelman + + To change the template for this generated type comment go to + Window>Preferences>Java>Code Generation>Code and Comments
+
+
+ +

+ + + + + + + + + + + + + + +
+Field Summary
+protected static java.util.Mapmap + +
+           
+  + + + + + + + + + + +
+Constructor Summary
ResourceLocator() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static java.lang.Stringget(java.lang.String resourceKey) + +
+           
+static java.lang.Stringlocate(java.lang.String resourceKey) + +
+           
+static voidset(java.lang.String resourceKey, + java.lang.String value) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+map

+
+protected static java.util.Map map
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResourceLocator

+
+public ResourceLocator()
+
+
+ + + + + + + + +
+Method Detail
+ +

+locate

+
+public static java.lang.String locate(java.lang.String resourceKey)
+
+
+
+
+
+
+ +

+get

+
+public static java.lang.String get(java.lang.String resourceKey)
+
+
+
+
+
+
+ +

+set

+
+public static void set(java.lang.String resourceKey,
+                       java.lang.String value)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/XMLUtils.html b/src/javadoc/org/realtor/rets/util/XMLUtils.html new file mode 100644 index 0000000..b311a90 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/XMLUtils.html @@ -0,0 +1,464 @@ + + + + + + +XMLUtils (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +org.realtor.rets.util +
+Class XMLUtils

+
+java.lang.Object
+  |
+  +--org.realtor.rets.util.XMLUtils
+
+
+
+
public class XMLUtils
extends java.lang.Object
+ +

+Utilities for dealing with XML +

+ +

+

+
Version:
+
1.0
+
Author:
+
tweber
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
XMLUtils() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddTextElement2Node(org.w3c.dom.Document doc, + org.w3c.dom.Node rootNode, + java.lang.String elementName, + java.lang.String elementValue) + +
+          Creates an Element and sets the text value of the element.
+static voidDOMtoOutputStream(org.w3c.dom.Document doc, + java.io.OutputStream os) + +
+          This method dumps out a dom document to an output stream.
+static org.w3c.dom.NodeListexecuteXpathQuery(org.w3c.dom.Node root, + java.lang.String query) + +
+           
+static voidprintNode(org.w3c.dom.Node node, + java.lang.String indent) + +
+           
+static voidprintNodeList(org.w3c.dom.NodeList list) + +
+           
+static org.w3c.dom.DocumentstringToDocument(java.lang.String xml) + +
+           
+static voidtransformXml(java.lang.String xmlDoc, + java.lang.String xslFile, + java.io.OutputStream os) + +
+           
+static voidtransformXml(java.lang.String xmlDoc, + java.lang.String xslFile, + java.io.OutputStream os, + java.util.Map parameters) + +
+          Does an xsl tranformation of an XML document and writes the result.
+static java.lang.StringtransformXmlToString(java.lang.String xmlDoc, + java.lang.String xslFile) + +
+           
+static java.lang.StringtransformXmlToString(java.lang.String xmlDoc, + java.lang.String xslFile, + java.util.Map parameters) + +
+          Does an xsl tranformation of an XML document and returns a String result.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+XMLUtils

+
+public XMLUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+DOMtoOutputStream

+
+public static void DOMtoOutputStream(org.w3c.dom.Document doc,
+                                     java.io.OutputStream os)
+
+
This method dumps out a dom document to an output stream. + Header information is turned off. +

+

+
Parameters:
doc - Dom Document
os - existing outputstream you wish to write the document to.
+
+
+
+ +

+transformXmlToString

+
+public static java.lang.String transformXmlToString(java.lang.String xmlDoc,
+                                                    java.lang.String xslFile,
+                                                    java.util.Map parameters)
+
+
Does an xsl tranformation of an XML document and returns a String result. +

+

+
Parameters:
xmlDoc - string value of an xmlDocument
xslFile - filename of an XSL file.
+
+
+
+ +

+transformXmlToString

+
+public static java.lang.String transformXmlToString(java.lang.String xmlDoc,
+                                                    java.lang.String xslFile)
+
+
+
+
+
+
+ +

+transformXml

+
+public static void transformXml(java.lang.String xmlDoc,
+                                java.lang.String xslFile,
+                                java.io.OutputStream os)
+
+
+
+
+
+
+ +

+transformXml

+
+public static void transformXml(java.lang.String xmlDoc,
+                                java.lang.String xslFile,
+                                java.io.OutputStream os,
+                                java.util.Map parameters)
+
+
Does an xsl tranformation of an XML document and writes the result. + to an output stream. +

+

+
Parameters:
xmlDoc - string value of an xmlDocument
xslFile - filename of an XSL file.
os - OutputStream to write the results to.
+
+
+
+ +

+addTextElement2Node

+
+public static void addTextElement2Node(org.w3c.dom.Document doc,
+                                       org.w3c.dom.Node rootNode,
+                                       java.lang.String elementName,
+                                       java.lang.String elementValue)
+
+
Creates an Element and sets the text value of the element. Appends the + element to rootNode. +

+

+
Parameters:
doc - DOM Document
rootNode - node to add an element to
elementName - name of the new element
elementValue - value of the new element.
+
+
+
+ +

+executeXpathQuery

+
+public static org.w3c.dom.NodeList executeXpathQuery(org.w3c.dom.Node root,
+                                                     java.lang.String query)
+                                              throws javax.xml.transform.TransformerException
+
+
+ +
javax.xml.transform.TransformerException
+
+
+
+ +

+printNodeList

+
+public static void printNodeList(org.w3c.dom.NodeList list)
+
+
+
+
+
+
+ +

+printNode

+
+public static void printNode(org.w3c.dom.Node node,
+                             java.lang.String indent)
+
+
+
+
+
+
+ +

+stringToDocument

+
+public static org.w3c.dom.Document stringToDocument(java.lang.String xml)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/AttributeExtracter.html b/src/javadoc/org/realtor/rets/util/class-use/AttributeExtracter.html new file mode 100644 index 0000000..d3e8bc3 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/AttributeExtracter.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.AttributeExtracter (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.AttributeExtracter

+
+No usage of org.realtor.rets.util.AttributeExtracter +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/Base64Encoder.html b/src/javadoc/org/realtor/rets/util/class-use/Base64Encoder.html new file mode 100644 index 0000000..856df2b --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/Base64Encoder.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.Base64Encoder (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.Base64Encoder

+
+No usage of org.realtor.rets.util.Base64Encoder +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/Base64FormatException.html b/src/javadoc/org/realtor/rets/util/class-use/Base64FormatException.html new file mode 100644 index 0000000..99c6c98 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/Base64FormatException.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.Base64FormatException (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.Base64FormatException

+
+No usage of org.realtor.rets.util.Base64FormatException +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/CompactParser.html b/src/javadoc/org/realtor/rets/util/class-use/CompactParser.html new file mode 100644 index 0000000..c603e84 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/CompactParser.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Class org.realtor.rets.util.CompactParser (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.CompactParser

+
+ + + + + + + + + +
+Packages that use CompactParser
org.realtor.rets.util  
+  +

+ + + + + +
+Uses of CompactParser in org.realtor.rets.util
+  +

+ + + + + + + + + +
Methods in org.realtor.rets.util that return CompactParser
+static CompactParserCompactParser.getTestInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/DesCrypter.html b/src/javadoc/org/realtor/rets/util/class-use/DesCrypter.html new file mode 100644 index 0000000..6394902 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/DesCrypter.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.DesCrypter (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.DesCrypter

+
+No usage of org.realtor.rets.util.DesCrypter +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/DigestUtil.html b/src/javadoc/org/realtor/rets/util/class-use/DigestUtil.html new file mode 100644 index 0000000..5768aa0 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/DigestUtil.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.DigestUtil (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.DigestUtil

+
+No usage of org.realtor.rets.util.DigestUtil +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/HealthCheck.EMailAuthenticator.html b/src/javadoc/org/realtor/rets/util/class-use/HealthCheck.EMailAuthenticator.html new file mode 100644 index 0000000..43ece80 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/HealthCheck.EMailAuthenticator.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.HealthCheck.EMailAuthenticator (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.HealthCheck.EMailAuthenticator

+
+No usage of org.realtor.rets.util.HealthCheck.EMailAuthenticator +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/HealthCheck.Listener.html b/src/javadoc/org/realtor/rets/util/class-use/HealthCheck.Listener.html new file mode 100644 index 0000000..72449f4 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/HealthCheck.Listener.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.HealthCheck.Listener (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.HealthCheck.Listener

+
+No usage of org.realtor.rets.util.HealthCheck.Listener +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/HealthCheck.html b/src/javadoc/org/realtor/rets/util/class-use/HealthCheck.html new file mode 100644 index 0000000..d330f05 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/HealthCheck.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.HealthCheck (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.HealthCheck

+
+No usage of org.realtor.rets.util.HealthCheck +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/HexUtils.html b/src/javadoc/org/realtor/rets/util/class-use/HexUtils.html new file mode 100644 index 0000000..10e99ac --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/HexUtils.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.HexUtils (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.HexUtils

+
+No usage of org.realtor.rets.util.HexUtils +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/MD5Util.html b/src/javadoc/org/realtor/rets/util/class-use/MD5Util.html new file mode 100644 index 0000000..defd72d --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/MD5Util.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.MD5Util (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.MD5Util

+
+No usage of org.realtor.rets.util.MD5Util +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/PropertiesLocator.html b/src/javadoc/org/realtor/rets/util/class-use/PropertiesLocator.html new file mode 100644 index 0000000..d821b74 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/PropertiesLocator.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.PropertiesLocator (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.PropertiesLocator

+
+No usage of org.realtor.rets.util.PropertiesLocator +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/PropertiesNotFoundException.html b/src/javadoc/org/realtor/rets/util/class-use/PropertiesNotFoundException.html new file mode 100644 index 0000000..99f9910 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/PropertiesNotFoundException.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Class org.realtor.rets.util.PropertiesNotFoundException (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.PropertiesNotFoundException

+
+ + + + + + + + + +
+Packages that use PropertiesNotFoundException
org.realtor.rets.util  
+  +

+ + + + + +
+Uses of PropertiesNotFoundException in org.realtor.rets.util
+  +

+ + + + + + + + + +
Methods in org.realtor.rets.util that throw PropertiesNotFoundException
+static java.util.PropertiesPropertiesLocator.locateProperties(java.lang.String fileName) + +
+           
+  +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/RETSCompactHandler.html b/src/javadoc/org/realtor/rets/util/class-use/RETSCompactHandler.html new file mode 100644 index 0000000..819a525 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/RETSCompactHandler.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.RETSCompactHandler (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.RETSCompactHandler

+
+No usage of org.realtor.rets.util.RETSCompactHandler +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/RETSConfigurator.html b/src/javadoc/org/realtor/rets/util/class-use/RETSConfigurator.html new file mode 100644 index 0000000..ff40087 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/RETSConfigurator.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.RETSConfigurator (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.RETSConfigurator

+
+No usage of org.realtor.rets.util.RETSConfigurator +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/RETSReplyCodes.html b/src/javadoc/org/realtor/rets/util/class-use/RETSReplyCodes.html new file mode 100644 index 0000000..96498fa --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/RETSReplyCodes.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.RETSReplyCodes (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.RETSReplyCodes

+
+No usage of org.realtor.rets.util.RETSReplyCodes +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/RETSRequestResponse.html b/src/javadoc/org/realtor/rets/util/class-use/RETSRequestResponse.html new file mode 100644 index 0000000..34819f4 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/RETSRequestResponse.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.RETSRequestResponse (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.RETSRequestResponse

+
+No usage of org.realtor.rets.util.RETSRequestResponse +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/Resource.html b/src/javadoc/org/realtor/rets/util/class-use/Resource.html new file mode 100644 index 0000000..7d2e79b --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/Resource.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.Resource (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.Resource

+
+No usage of org.realtor.rets.util.Resource +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/ResourceLocator.html b/src/javadoc/org/realtor/rets/util/class-use/ResourceLocator.html new file mode 100644 index 0000000..6c50221 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/ResourceLocator.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.ResourceLocator (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.ResourceLocator

+
+No usage of org.realtor.rets.util.ResourceLocator +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/class-use/XMLUtils.html b/src/javadoc/org/realtor/rets/util/class-use/XMLUtils.html new file mode 100644 index 0000000..97557bb --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/class-use/XMLUtils.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.realtor.rets.util.XMLUtils (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Class
org.realtor.rets.util.XMLUtils

+
+No usage of org.realtor.rets.util.XMLUtils +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/package-frame.html b/src/javadoc/org/realtor/rets/util/package-frame.html new file mode 100644 index 0000000..ba9cf31 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/package-frame.html @@ -0,0 +1,76 @@ + + + + + + +org.realtor.rets.util (RETS 1.5 Reference Impl) + + + + + + + +org.realtor.rets.util + + + + +
+Classes  + +
+AttributeExtracter +
+Base64Encoder +
+CompactParser +
+DesCrypter +
+DigestUtil +
+HealthCheck +
+HexUtils +
+MD5Util +
+PropertiesLocator +
+Resource +
+ResourceLocator +
+RETSCompactHandler +
+RETSConfigurator +
+RETSReplyCodes +
+RETSRequestResponse +
+XMLUtils
+ + + + + + +
+Exceptions  + +
+Base64FormatException +
+PropertiesNotFoundException
+ + + + diff --git a/src/javadoc/org/realtor/rets/util/package-summary.html b/src/javadoc/org/realtor/rets/util/package-summary.html new file mode 100644 index 0000000..80ebcd3 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/package-summary.html @@ -0,0 +1,225 @@ + + + + + + +org.realtor.rets.util (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+

+Package org.realtor.rets.util +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AttributeExtracter 
Base64EncoderBASE64 encoder implementation.
CompactParserCompactParser.java Created Aug 1, 2003 + This is a lightweight parser for RETS compact messages.
DesCrypter 
DigestUtil 
HealthCheckA class that checks the status of the supplied url and sends a supplied + notification to the supplied email addresses if there is any kind of failure.
HexUtils 
MD5Util 
PropertiesLocatorPropertiesLocator.java Created Aug 6, 2003 + + + Copyright 2003, Avantia inc.
ResourceA class to locate resources, retrieve their contents, and determine their + last modified time.
ResourceLocator 
RETSCompactHandler 
RETSConfiguratorRETSConfigurator + Singleton to limit number of times BasicConfigurator.configure is called.
RETSReplyCodesHandles the mapping of replyCodes to replyText
RETSRequestResponse 
XMLUtilsUtilities for dealing with XML
+  + +

+ + + + + + + + + + + + + +
+Exception Summary
Base64FormatExceptionException for invalid BASE64 streams.
PropertiesNotFoundExceptionPropertiesNotFoundException.java Created Aug 6, 2003 + + + Copyright 2003, Avantia inc.
+  + +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/package-tree.html b/src/javadoc/org/realtor/rets/util/package-tree.html new file mode 100644 index 0000000..9f39320 --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/package-tree.html @@ -0,0 +1,149 @@ + + + + + + +org.realtor.rets.util Class Hierarchy (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Hierarchy For Package org.realtor.rets.util +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/org/realtor/rets/util/package-use.html b/src/javadoc/org/realtor/rets/util/package-use.html new file mode 100644 index 0000000..920195d --- /dev/null +++ b/src/javadoc/org/realtor/rets/util/package-use.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Package org.realtor.rets.util (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Uses of Package
org.realtor.rets.util

+
+ + + + + + + + + +
+Packages that use org.realtor.rets.util
org.realtor.rets.util  
+  +

+ + + + + + + + + + + +
+Classes in org.realtor.rets.util used by org.realtor.rets.util
CompactParser + +
+          CompactParser.java Created Aug 1, 2003 + This is a lightweight parser for RETS compact messages.
PropertiesNotFoundException + +
+          PropertiesNotFoundException.java Created Aug 6, 2003 + + + Copyright 2003, Avantia inc.
+  +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/overview-frame.html b/src/javadoc/overview-frame.html new file mode 100644 index 0000000..0e7a474 --- /dev/null +++ b/src/javadoc/overview-frame.html @@ -0,0 +1,45 @@ + + + + + + +Overview (RETS 1.5 Reference Impl) + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+org.realtor.rets.converters +
+org.realtor.rets.util +
+

+ +

+  + + diff --git a/src/javadoc/overview-summary.html b/src/javadoc/overview-summary.html new file mode 100644 index 0000000..2e5357c --- /dev/null +++ b/src/javadoc/overview-summary.html @@ -0,0 +1,141 @@ + + + + + + +Overview (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + + +
+ +
+ + +


+
+

+

RETS 1.5

+
+ + + + + + + + + + + + + +
+Packages
org.realtor.rets.converters 
org.realtor.rets.util 
+ +


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/overview-tree.html b/src/javadoc/overview-tree.html new file mode 100644 index 0000000..edd3050 --- /dev/null +++ b/src/javadoc/overview-tree.html @@ -0,0 +1,161 @@ + + + + + + +Class Hierarchy (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
org.realtor.rets.converters, org.realtor.rets.util
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/package-list b/src/javadoc/package-list new file mode 100644 index 0000000..98f775b --- /dev/null +++ b/src/javadoc/package-list @@ -0,0 +1,2 @@ +org.realtor.rets.converters +org.realtor.rets.util diff --git a/src/javadoc/packages.html b/src/javadoc/packages.html new file mode 100644 index 0000000..b0bec88 --- /dev/null +++ b/src/javadoc/packages.html @@ -0,0 +1,32 @@ + + + + + + + (RETS 1.5 Reference Impl) + + + + + + +
+ +
+ +
+
+The front page has been relocated.Please see: +
+          Frame version +
+          Non-frame version.
+ + + diff --git a/src/javadoc/serialized-form.html b/src/javadoc/serialized-form.html new file mode 100644 index 0000000..90f66e5 --- /dev/null +++ b/src/javadoc/serialized-form.html @@ -0,0 +1,505 @@ + + + + + + +Serialized Form (RETS 1.5 Reference Impl) + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Serialized Form

+
+
+ + + + + +
+Package org.realtor.rets.converters
+ +

+ + + + + +
+Class org.realtor.rets.converters.AppliancesMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.BasementMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.BaseMultiValueFieldConversion implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+mappings

+
+org.apache.commons.collections.DoubleOrderedMap mappings
+
+
+
+
+
+ +

+delimiter

+
+java.lang.String delimiter
+
+
+
+
+
+ +

+multiValue

+
+boolean multiValue
+
+
+
+
+ +

+ + + + + +
+Class org.realtor.rets.converters.BooleanToVarcharFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.ExteriorMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.FenceMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.GarageMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.HeatingSystemMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.ListingStatusMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.ListingTypeMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.LockBoxMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.OccupiedByMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.PublicTransportationMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.RoofMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.RoomMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.SidingMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.StyleMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.ViewDescriptionMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.WaterMultiValueFieldConversion implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.converters.ZoningMultiValueFieldConversion implements Serializable
+ +

+ +

+


+ + + + + +
+Package org.realtor.rets.util
+ +

+ + + + + +
+Class org.realtor.rets.util.Base64FormatException implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.util.PropertiesNotFoundException implements Serializable
+ +

+ +

+ + + + + +
+Class org.realtor.rets.util.Resource implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+name

+
+java.lang.String name
+
+
+
+
+
+ +

+file

+
+java.io.File file
+
+
+
+
+
+ +

+url

+
+java.net.URL url
+
+
+
+
+ +

+ + + + + +
+Class org.realtor.rets.util.RETSRequestResponse implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+req

+
+java.util.HashMap req
+
+
+
+
+
+ +

+resp

+
+java.util.HashMap resp
+
+
+
+
+ +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+Copyright © 2002 National Association of Realtors - All Rights Reserved. + + diff --git a/src/javadoc/stylesheet.css b/src/javadoc/stylesheet.css new file mode 100644 index 0000000..b62ecb5 --- /dev/null +++ b/src/javadoc/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ +.TableRowColor { background: #FFFFFF } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif } +.FrameHeadingFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif } +.FrameItemFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif } + +/* Example of smaller, sans-serif font in frames */ +/* .FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */ + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF;}/* Light mauve */ +.NavBarCell1Rev { background-color:#00008B;}/* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} + diff --git a/src/lib/commons-collections-1.0.jar b/src/lib/commons-collections-1.0.jar new file mode 100644 index 0000000..fd0eaee Binary files /dev/null and b/src/lib/commons-collections-1.0.jar differ diff --git a/src/lib/commons-collections-2.0.jar b/src/lib/commons-collections-2.0.jar new file mode 100644 index 0000000..6f2c191 Binary files /dev/null and b/src/lib/commons-collections-2.0.jar differ diff --git a/src/lib/commons-lang-1.0-mod.jar b/src/lib/commons-lang-1.0-mod.jar new file mode 100644 index 0000000..8692ee0 Binary files /dev/null and b/src/lib/commons-lang-1.0-mod.jar differ diff --git a/src/lib/db-ojb-1.0.rc3.jar b/src/lib/db-ojb-1.0.rc3.jar new file mode 100644 index 0000000..94a7d25 Binary files /dev/null and b/src/lib/db-ojb-1.0.rc3.jar differ diff --git a/src/lib/log4j-1.2.5.jar b/src/lib/log4j-1.2.5.jar new file mode 100644 index 0000000..c7111d8 Binary files /dev/null and b/src/lib/log4j-1.2.5.jar differ diff --git a/src/lib/mail.jar b/src/lib/mail.jar new file mode 100644 index 0000000..eb2269d Binary files /dev/null and b/src/lib/mail.jar differ diff --git a/src/main/java/org/realtor/rets/util/AttributeExtracter.java b/src/main/java/org/realtor/rets/util/AttributeExtracter.java new file mode 100644 index 0000000..8a20d03 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/AttributeExtracter.java @@ -0,0 +1,62 @@ +/* + * AttributeExtracter.java + * + * Created on October 28, 2002, 3:50 PM + */ +package org.realtor.rets.util; + +import org.xml.sax.Attributes; +import org.xml.sax.SAXException; +import org.xml.sax.helpers.DefaultHandler; + +import java.util.HashMap; + + +/** + * + * @author tweber + */ +public class AttributeExtracter extends DefaultHandler { + private String delim = " "; + private StringBuffer textBuffer; + private String currentElement = null; + HashMap retHash = new HashMap(); + + /** Creates a new instance of AttributeExtracter */ + public AttributeExtracter() { + } + + public void startElement(String namespaceURI, String sName, // simple name + String qName, // qualified name + Attributes attrs) throws SAXException { + textBuffer = null; + + String eName = qName; // element name + currentElement = qName; + + if (("DATA".equalsIgnoreCase(currentElement)) || + ("COLUMNS".equalsIgnoreCase(currentElement))) { + return; + } + + HashMap attHash = new HashMap(); + + if (attrs != null) { + for (int i = 0; i < attrs.getLength(); i++) { + String aName = attrs.getLocalName(i); // Attr name + + if ("".equals(aName)) { + aName = attrs.getQName(i); + } + + attHash.put(aName.toUpperCase(), attrs.getValue(aName)); + } + } + + retHash.put(currentElement.toUpperCase(), attHash); + } + + public HashMap getHash() { + return retHash; + } +} diff --git a/src/main/java/org/realtor/rets/util/Base64Encoder.java b/src/main/java/org/realtor/rets/util/Base64Encoder.java new file mode 100644 index 0000000..8e9bf77 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/Base64Encoder.java @@ -0,0 +1,231 @@ +// Base64Encoder.java +// $Id: Base64Encoder.java,v 1.2 2003/12/04 15:27:03 rsegelman Exp $ +// (c) COPYRIGHT MIT and INRIA, 1996. +// Please first read the full copyright statement in file COPYRIGHT.html +package org.realtor.rets.util; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; + + +/** + * BASE64 encoder implementation. + * This object takes as parameter an input stream and an output stream. It + * encodes the input stream, using the BASE64 encoding rules, as defined + * in MIME specification + * and emit the resulting data to the output stream. + * @see org.w3c.tools.codec.Base64Decoder + */ +public class Base64Encoder { + private static final int BUFFER_SIZE = 1024; + private static byte[] encoding = { + (byte) 'A', (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F', + (byte) 'G', (byte) 'H', // 0-7 + (byte) 'I', (byte) 'J', (byte) 'K', (byte) 'L', (byte) 'M', (byte) 'N', + (byte) 'O', (byte) 'P', // 8-15 + (byte) 'Q', (byte) 'R', (byte) 'S', (byte) 'T', (byte) 'U', (byte) 'V', + (byte) 'W', (byte) 'X', // 16-23 + (byte) 'Y', (byte) 'Z', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd', + (byte) 'e', (byte) 'f', // 24-31 + (byte) 'g', (byte) 'h', (byte) 'i', (byte) 'j', (byte) 'k', (byte) 'l', + (byte) 'm', (byte) 'n', // 32-39 + (byte) 'o', (byte) 'p', (byte) 'q', (byte) 'r', (byte) 's', (byte) 't', + (byte) 'u', (byte) 'v', // 40-47 + (byte) 'w', (byte) 'x', (byte) 'y', (byte) 'z', (byte) '0', (byte) '1', + (byte) '2', (byte) '3', // 48-55 + (byte) '4', (byte) '5', (byte) '6', (byte) '7', (byte) '8', (byte) '9', + (byte) '+', (byte) '/', // 56-63 + (byte) '=' // 64 + }; + InputStream in = null; + OutputStream out = null; + boolean stringp = false; + + /** + * Create a new Base64 encoder, to encode the given string. + * @param input The String to be encoded. + */ + public Base64Encoder(String input) { + byte[] bytes = new byte[input.length()]; + input.getBytes(0, bytes.length, bytes, 0); + this.stringp = true; + this.in = new ByteArrayInputStream(bytes); + this.out = new ByteArrayOutputStream(); + } + + /** + * Create a new Base64 encoder, encoding input to output. + * @param in The input stream to be encoded. + * @param out The output stream, to write encoded data to. + */ + public Base64Encoder(InputStream in, OutputStream out) { + this.in = in; + this.out = out; + this.stringp = false; + } + + private final int get1(byte[] buf, int off) { + return (buf[off] & 0xfc) >> 2; + } + + private final int get2(byte[] buf, int off) { + return ((buf[off] & 0x3) << 4) | ((buf[off + 1] & 0xf0) >>> 4); + } + + private final int get3(byte[] buf, int off) { + return ((buf[off + 1] & 0x0f) << 2) | ((buf[off + 2] & 0xc0) >>> 6); + } + + private static final int get4(byte[] buf, int off) { + return buf[off + 2] & 0x3f; + } + + /** + * Process the data: encode the input stream to the output stream. + * This method runs through the input stream, encoding it to the output + * stream. + * @exception IOException If we weren't able to access the input stream or + * the output stream. + */ + public void process() throws IOException { + byte[] buffer = new byte[BUFFER_SIZE]; + int got = -1; + int off = 0; + int count = 0; + + while ((got = in.read(buffer, off, BUFFER_SIZE - off)) > 0) { + if (got >= 3) { + got += off; + off = 0; + + while ((off + 3) <= got) { + int c1 = get1(buffer, off); + int c2 = get2(buffer, off); + int c3 = get3(buffer, off); + int c4 = get4(buffer, off); + + switch (count) { + case 73: + out.write(encoding[c1]); + out.write(encoding[c2]); + out.write(encoding[c3]); + out.write('\n'); + out.write(encoding[c4]); + count = 1; + + break; + + case 74: + out.write(encoding[c1]); + out.write(encoding[c2]); + out.write('\n'); + out.write(encoding[c3]); + out.write(encoding[c4]); + count = 2; + + break; + + case 75: + out.write(encoding[c1]); + out.write('\n'); + out.write(encoding[c2]); + out.write(encoding[c3]); + out.write(encoding[c4]); + count = 3; + + break; + + case 76: + out.write('\n'); + out.write(encoding[c1]); + out.write(encoding[c2]); + out.write(encoding[c3]); + out.write(encoding[c4]); + count = 4; + + break; + + default: + out.write(encoding[c1]); + out.write(encoding[c2]); + out.write(encoding[c3]); + out.write(encoding[c4]); + count += 4; + + break; + } + + off += 3; + } + + // Copy remaining bytes to beginning of buffer: + for (int i = 0; i < 3; i++) + buffer[i] = (i < (got - off)) ? buffer[off + i] : ((byte) 0); + + off = got - off; + } else { + // Total read amount is less then 3 bytes: + off += got; + } + } + + // Manage the last bytes, from 0 to off: + switch (off) { + case 1: + out.write(encoding[get1(buffer, 0)]); + out.write(encoding[get2(buffer, 0)]); + out.write('='); + out.write('='); + + break; + + case 2: + out.write(encoding[get1(buffer, 0)]); + out.write(encoding[get2(buffer, 0)]); + out.write(encoding[get3(buffer, 0)]); + out.write('='); + } + + return; + } + + /** + * Encode the content of this encoder, as a string. + * This methods encode the String content, that was provided at creation + * time, following the BASE64 rules, as specified in the rfc1521. + * @return A String, reprenting the encoded content of the input String. + */ + public String processString() { + if (!stringp) { + throw new RuntimeException(this.getClass().getName() + + "[processString]" + "invalid call (not a String)"); + } + + try { + process(); + } catch (IOException e) { + } + + return ((ByteArrayOutputStream) out).toString(); + } + + /** + * Testing the encoder. + * Run with one argument, prints the encoded version of it. + */ + public static void main(String[] args) { + if (args.length != 1) { + System.out.println("Base64Encoder "); + System.exit(0); + } + + Base64Encoder b = new Base64Encoder(args[0]); + System.out.println("[" + b.processString() + "]"); + + // joe:eoj -> am9lOmVvag== + // 12345678:87654321 -> MTIzNDU2Nzg6ODc2NTQzMjE= + } +} diff --git a/src/main/java/org/realtor/rets/util/Base64FormatException.java b/src/main/java/org/realtor/rets/util/Base64FormatException.java new file mode 100644 index 0000000..14ad978 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/Base64FormatException.java @@ -0,0 +1,19 @@ +// Base64FormatException.java +// $Id: Base64FormatException.java,v 1.2 2003/12/04 15:27:03 rsegelman Exp $ +// (c) COPYRIGHT MIT and INRIA, 1996. +// Please first read the full copyright statement in file COPYRIGHT.html +package org.realtor.rets.util; + + +/** + * Exception for invalid BASE64 streams. + */ +public class Base64FormatException extends Exception { + /** + * Create that kind of exception + * @param msg The associated error message + */ + public Base64FormatException(String msg) { + super(msg); + } +} diff --git a/src/main/java/org/realtor/rets/util/CompactFormatData.java b/src/main/java/org/realtor/rets/util/CompactFormatData.java new file mode 100644 index 0000000..f0a6305 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/CompactFormatData.java @@ -0,0 +1,292 @@ +/* $Header: /usr/local/cvsroot/rets/commons/src/main/java/org/realtor/rets/util/CompactFormatData.java,v 1.2 2005/05/26 17:43:55 ekovach Exp $ + */ +package org.realtor.rets.util; + +import java.io.*; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.StringTokenizer; + +/** + A class to represent set of compact-format RETS data. + */ +public class CompactFormatData { + /** + Final value to denote that the tag hasn't been read yet. + */ + private static final char NO_DELIMITER_CHAR = 0; + + /** + Storage for the column names. Set to null to show that the colum names + have not been read. + */ + private ArrayList columnArrayList = null; + + /** + Storage for the data. + */ + private ArrayList dataArrayList = new ArrayList(); + + /** + The delimiter character. + */ + private char delimiter = NO_DELIMITER_CHAR; + + /** + Return a CompactFormatData object with information from the specified + Reader. + @param body A Reader from which to read the compact-format information. + */ + public static CompactFormatData parse(Reader reader) throws IOException { + return new CompactFormatData(reader); + } + + /** + Return a CompactFormatData object with information from the specified + String body. + @param body A String from which to read the compact-format information. + */ + public static CompactFormatData parse(String body) throws IOException { + return new CompactFormatData(new StringReader(body)); + } + + /** + Construct a CompactFormatData object with information from a Reader. + @param reader A Reader from which to read the compact-format information. + */ + private CompactFormatData(Reader reader) throws IOException { + CharArrayWriter caw = new CharArrayWriter(); + int character = -1; + do { + character = reader.read(); + if (character >= 0) { + caw.write(character); + } + String testString = caw.toString().trim(); + // check for end-of-file or end-of-CF-line tags + if ((character < 0) || + testString.endsWith("") || + testString.endsWith("") || + testString.endsWith("") || + testString.endsWith("") || + testString.endsWith("") || + (testString.startsWith("")) || + (testString.startsWith("")) || + (testString.startsWith("")) || + (testString.startsWith("")) + ) { + processLine(testString); + caw = new CharArrayWriter(); + } + + } + while (character >= 0); + + if (delimiter == NO_DELIMITER_CHAR) { + throw new IOException(" not found"); + } + } + + /** + Process a line of CompactFormatData text. + @param line A line of CompactFormatData text. + */ + private void processLine(String line) throws IOException { + if (line.startsWith("")) { + if (delimiter == NO_DELIMITER_CHAR) { + throw new IOException(" not specified before "); + } + columnArrayList = readDataLine(line, delimiter, ""); + } + else if (line.startsWith("")) { + if (delimiter == NO_DELIMITER_CHAR) { + throw new IOException(" not specified before "); + } + if (columnArrayList == null) { + throw new IOException(" not specified before "); + } + ArrayList tempArrayList = readDataLine(line, delimiter, ""); + dataArrayList.add(tempArrayList); + } + } + + /** + Read a data/column line using the specified delimiter and end tag. + @param line The String line to read. + @param delimiter The delimiter character. + @param endTag The token that signifies the end of data/column reading. + */ + private ArrayList readDataLine(String line, char delimiter, String endTag) { + ArrayList returnArrayList = new ArrayList(); + int startIndex = 0; + boolean isFirstToken = true; + do { + // get the end index (the next delimiter or the end of the line) + int endIndex = line.indexOf(delimiter, startIndex); + if (endIndex < 0) { + endIndex = line.length(); + } + + // get the token (space between start and delimiter/end of line) + String token = line.substring(startIndex, endIndex); + + // unquote tokens wrapped in quotes + if (token.startsWith("\"")) { + token = token.substring(1, token.length() - 1); + } + + // if the end token, break out of the loop + if (token.equals(endTag)) { + break; + } + + // skip the first or token + if (! isFirstToken) { + returnArrayList.add(token); + } + isFirstToken = false; + + // check for the end of the line or the end tag + startIndex = endIndex + 1; + if (endIndex >= line.length()) { + break; + } + } + while (true); + return returnArrayList; + } + + /** + Get a String array of the column names. Returns an empty String array + if no column names were read. + @return A String array of the column names or an empty String array if + no column names were read. + */ + public String [] getColumns() { + return (String []) getColumnsAsList().toArray(new String[columnArrayList.size()]); + } + + /** + Get a List of the column names. Returns an empty list if no column + names were read. + @return A List of the column names or an empty list if no column + names were read. + */ + public List getColumnsAsList() { + List returnList = columnArrayList; + if (returnList == null) { + returnList = new ArrayList(); + } + return returnList; + } + + /** + Get the number of data rows. + @return The number of data rows. + */ + public int getDataRowCount() { + return dataArrayList.size(); + } + + /** + Get a String array of data for a particular row. + @param row The row number for which to get the data. + @return A String array of data for a particular row. + */ + public String [] getDataForRow(int row) { + List rowList = getDataForRowAsList(row); + return (String []) rowList.toArray(new String[rowList.size()]); + } + + /** + Get a List of data for a particular row. + @param row The row number for which to get the data. + @return A List of data for a particular row. + */ + public List getDataForRowAsList(int row) { + return (List) dataArrayList.get(row); + } + + /** + Get a sublist of the row data. + @param startRow + @param endRow + @return A List of List objects of the requested row data. + */ + public List getDataSublist(int startRow, int endRow) { + return dataArrayList.subList(startRow, endRow); + } + + /** + Get a String array of row data for a specific column name. Returns + an empty array if the column is not found. + @param columnName The column name for which to fetch data. + @return A String array of the row data or an empty array if the column + is not found. + */ + public String [] getDataForColumn(String columnName) { + List dataList = getDataForColumnAsList(columnName); + return (String []) (dataList.toArray(new String[dataList.size()])); + } + + /** + Get a List of row data for a specific column name. Returns an + empty list if the column is not found. + @param columnName The column name for which to fetch data. + @return A List of the row data or an empty List if the column + is not found. + */ + public List getDataForColumnAsList(String columnName) { + ArrayList returnList = new ArrayList(); + if (columnArrayList != null) { + int columnNumber = columnArrayList.indexOf(columnName); + if (columnNumber >= 0) { + Iterator iterator = dataArrayList.iterator(); + while (iterator.hasNext()) { + List rowList = (List) iterator.next(); + if (rowList.size() > columnNumber) { + returnList.add(rowList.get(columnNumber)); + } + else { + returnList.add(""); + } + } + } + } + return returnList; + } + + /** + Get a String representation of this CompactFormatData. + @return A String representation of this CompactFormatData. + */ + public String toString() { + StringBuffer stringBuffer = new StringBuffer("CompactFormatData: Columns "); + if (columnArrayList == null) { + stringBuffer.append("(none)"); + } + else { + stringBuffer.append(columnArrayList); + } + stringBuffer.append(" Data "); + stringBuffer.append(dataArrayList); + return stringBuffer.toString(); + } + + public static void main(String [] args) { + try { + CompactFormatData cfd = parse(new FileReader("C:\\downloads\\cf.txt")); + System.err.println(cfd); + } + catch (IOException e) { + e.printStackTrace(); + } + } + +} \ No newline at end of file diff --git a/src/main/java/org/realtor/rets/util/CompactParser.java b/src/main/java/org/realtor/rets/util/CompactParser.java new file mode 100644 index 0000000..e343e35 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/CompactParser.java @@ -0,0 +1,208 @@ +/* $Header: /usr/local/cvsroot/rets/commons/src/main/java/org/realtor/rets/util/CompactParser.java,v 1.2 2003/12/04 15:27:03 rsegelman Exp $ */ +package org.realtor.rets.util; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Set; +import java.util.StringTokenizer; +import java.util.Vector; + + +/** + * CompactParser.java Created Aug 1, 2003 + * This is a lightweight parser for RETS compact messages. It scans the compact message and loads + * the keys and values into its internal data structure. The data can then be iterated over by calling the + * nextColumn() method. + * + * + * Copyright 2003, Avantia inc. + * @version $Revision: 1.2 $ + * @author scohen + */ +public class CompactParser { + private String delimiter = "\t"; + private LinkedHashMap map; + private Iterator iter = null; + + public CompactParser() { + map = new LinkedHashMap(); + } + + public CompactParser(String rawXML) { + this(); + parse(rawXML); + } + + public CompactParser(String rawCompact, String metadataXML) { + this(); + parse(rawCompact); + System.out.println("Metadata:\n" + metadataXML); + } + + /** + * resets the iterator to start at the first column + * + */ + public void reset() { + ArrayList toSort = new ArrayList(); + toSort.addAll(map.keySet()); + Collections.sort(toSort); + iter = toSort.iterator(); + } + + /** + * Returns a Vector conaining the names of the columns. + * @return The names of the columns. + */ + public Vector getColumns() { + Vector rv = new Vector(); + Set s = map.keySet(); + + rv.add(s); + + return rv; + } + + /** + * Tests whether or not there are more columns in the iteration. + * @return true if there are more columns waiting, false if there aren't. + */ + public boolean hasMoreColumns() { + if (iter == null) { + reset(); + } + + return iter.hasNext(); + } + + /** + * Get the next column in the sequence. + * @return A string whose value is the name of the next column, or null if there aren't any more columns. + */ + public String nextColumn() { + String rv = null; + + if (iter == null) { + reset(); + } + + if (iter.hasNext()) { + rv = (String) iter.next(); + } else { + iter = null; + } + + return rv; + } + + /** + * Returns the data contained in the column name represented by the String key + * @param key The name of the column whose data you wish to examine. + * @return The data contained in the column, or null if no data is present. + */ + public String getData(String key) { + String rv = null; + + if (map.containsKey(key)) { + rv = (String) map.get(key); + } + + return rv; + } + + private void parse(String xml) { + String tag = getTag("RETS", xml); + System.out.println("first tag is " + tag); + + String delimTag = getTag("DELIMITER", xml); + String delim = getAttribute("value", delimTag); + + if (delim != null) { + delimiter = String.valueOf((char) Integer.parseInt(delim)); + } + + map(getTagBody("COLUMNS", xml), getTagBody("DATA", xml)); + } + + private String getTag(String tagName, String xml) { + int tagStart = xml.indexOf("<" + tagName); + int tagEnd = xml.indexOf(">", tagStart) + 1; + + return xml.substring(tagStart, tagEnd); + } + + private String getTagBody(String tagName, String xml) { + int tagStart = xml.indexOf(">", xml.indexOf(tagName)) + 1; + int tagEnd = xml.indexOf("=/"; + StringTokenizer st = new StringTokenizer(tag.substring(tag.indexOf( + attributeName)), delims, false); + + while (st.hasMoreTokens()) { + String next = st.nextToken(); + + if (next.equals(attributeName)) { + // the next value is the quoted value + String value = st.nextToken(); + + return value.substring(1, value.trim().length() - 1); + } + } + + return null; + } + + private void map(String columns, String data) { + String[] colArr = columns.split(delimiter); + String[] dataArr = data.split(delimiter); + + for (int i = 0; i < colArr.length; i++) { + if ((colArr[i] != null) && (colArr[i].length() > 0)) { + if (dataArr.length > i) { + map.put(colArr[i], DigestUtil.removeQuotes(dataArr[i])); + } else { + map.put(colArr[i], ""); + } + } + } + + System.out.println(map); + } + + public Map getMapping() { + return map; + } + + public static CompactParser getTestInstance() { + String xml = + "" + + " ListOfficeOfficeID ListAgentPager ListOfficeEmail ListAgentPostalCode Style DaysOnMarket LotSizeArea Roof City CoveredParking ListAgentFax ListingStatus ListOfficePostalCode ListAgentOfficePhone StreetNumber PictureData TaxID BathsHalf ListOfficeOfficePhone ListOfficeStreetAdditionalInfo LivingRoomDim PostalCode LivingRoom State ListType Utilities ListingArea Beds Zoning ShowingInstructions ListAgentEmail Heating Cooling Exterior AssociationFee ListAgentCellPhone FamilyRoom ListAgentHomePhone Longitude ListPrice ListingID Baths StreetDirPrefix PublicRemarks ListAgentAgentID ListAgentLastName ExpirationData FamilyRoomDim ClosePrice ListAgentFirstName County Garage LivingArea SaleAgentAgentID ListOfficeFax ListOfficeCity LotSizeDim BoxNumber StatusChangeDate StreetName Basement ListAgentStreetAdditionalInfo ListAgentNRDSMemberID Fireplaces ListAgentCity ListDate Stories ListOfficeStreetName ListOfficeWWW Sundivision OriginalListPrice SaleOfficeOfficeID Directions ListOfficeListingServiceName Remarks DiningRoomDim TaxLegalDescription ListAgentWWW ListAgentStreetName SchoolDistrict ListOfficeState ListAgentState Latitude MapCoordinate CloseDate DiningRoom BathsFull TotalRooms " + + " 2309 44124 2 860 G B CLEVELAND 3 act 44124 (216) 226-4352 3340 1606093 0 (440) 449-2300 12X14 44102 K OH ers 0.00 105.00 4 Call ListAgt nverikakis@core.com \"2,3,B,C\" \"A,C\" 0.00 -81.72779900 74500.00 1004685 2 W 362265 Verikakis 0000-00-00 0.00 Nicholas CUY \"1,B,E\" 1542.00 (440) 449-2574 Mayfield Heights 35X125 0000-00-00 61 ST 0 Mayfield Heights 2002-08-08 2 6030 Mayfield Road #1 74900.00 BETWEEN STORER and CLARK \"Jennie Chiccola Realty, Inc.\" \"JUST RENOVATED*NEW DRIVE,ROOF,GAR.VINYL+NEW ROOF,FURNACE,HWT KITCHEN,2BATHS,CARPETS,ELECTR,ALL COPPER PLMB and DRAINS PVC, MOST DRYWALL NEW,PORCHES,FENCE,BASMT CONC.FLOOR,CEDAR CLOSET UP*OFF KITCHEN 1ST FLOOR LAUNDRY and REAR DECK*ROOM SIZES ARE APPROXIMATE*\" 00X00 6030 Mayfield Road #1 1809 OH OH 41.46359100 D1 0000-00-00 K 2 7 "; + String shortTest = " this is a test"; + CompactParser cp = new CompactParser(xml); + + return cp; + } + + public static void main(String[] args) { + CompactParser cp = CompactParser.getTestInstance(); + + while (cp.hasMoreColumns()) { + String col = cp.nextColumn(); + System.out.println("Mapping: " + col + " : " + cp.getData(col)); + } + + System.out.println("Hey!"); + cp.reset(); + System.out.println(cp.nextColumn()); + } +} diff --git a/src/main/java/org/realtor/rets/util/DesCrypter.java b/src/main/java/org/realtor/rets/util/DesCrypter.java new file mode 100644 index 0000000..bcab575 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/DesCrypter.java @@ -0,0 +1,88 @@ +package org.realtor.rets.util; + +import java.io.UnsupportedEncodingException; + +import java.security.Security; + +import javax.crypto.Cipher; +import javax.crypto.IllegalBlockSizeException; +import javax.crypto.SecretKey; +import javax.crypto.spec.SecretKeySpec; + + +/** + * + */ +public class DesCrypter { + static { + Security.addProvider(new com.sun.crypto.provider.SunJCE()); + } + + Cipher ecipher; + Cipher dcipher; + + //String transform = "DES"; + String transform = "DES/ECB/PKCS5Padding"; + + public DesCrypter(byte[] keyBytes) { + SecretKey key = new SecretKeySpec(keyBytes, "DES"); + + try { + ecipher = Cipher.getInstance(transform); + ecipher.init(Cipher.ENCRYPT_MODE, key); + + dcipher = Cipher.getInstance(transform); + dcipher.init(Cipher.DECRYPT_MODE, key); + } catch (javax.crypto.NoSuchPaddingException e) { + e.printStackTrace(); + } catch (java.security.NoSuchAlgorithmException e) { + e.printStackTrace(); + } catch (java.security.InvalidKeyException e) { + e.printStackTrace(); + } + } + + public String encrypt(String str) { + try { + // Encode the string into bytes using utf-8 + byte[] utf8 = str.getBytes("UTF8"); + + // Encrypt + byte[] enc = ecipher.doFinal(utf8); + + // Encode bytes to base64 to get a string + return new sun.misc.BASE64Encoder().encode(enc); + } catch (javax.crypto.BadPaddingException e) { + e.printStackTrace(); + } catch (IllegalBlockSizeException e) { + e.printStackTrace(); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + + return null; + } + + public String decrypt(String str) { + try { + // Decode base64 to get bytes + byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str); + + // Decrypt + byte[] utf8 = dcipher.doFinal(dec); + + // Decode using utf-8 + return new String(utf8, "UTF8"); + } catch (javax.crypto.BadPaddingException e) { + e.printStackTrace(); + } catch (IllegalBlockSizeException e) { + e.printStackTrace(); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } catch (java.io.IOException e) { + e.printStackTrace(); + } + + return null; + } +} diff --git a/src/main/java/org/realtor/rets/util/DigestUtil.java b/src/main/java/org/realtor/rets/util/DigestUtil.java new file mode 100644 index 0000000..a3f14ae --- /dev/null +++ b/src/main/java/org/realtor/rets/util/DigestUtil.java @@ -0,0 +1,147 @@ +/* + * DigestUtil.java + * + * Created on October 4, 2002 + */ +package org.realtor.rets.util; + +import org.apache.log4j.*; + +import java.security.*; + +import java.util.*; + + +/** + * + * @version 1.0 + */ +public class DigestUtil { + /** log4j Category object */ + static Category cat = Category.getInstance(DigestUtil.class); + + /** + * Create digest Authentication String + */ + public static String digestAuthorization(String username, String password, + String method, String uri, String value) { + Map m = parseAuthenticate(value); + String realm = (String) m.get("realm"); + String nonce = (String) m.get("nonce"); + String opaque = (String) m.get("opaque"); + String nc = "00000001"; + String cnonce = (String) m.get("cnonce"); + String qop = (String) m.get("qop"); + + boolean isRFC2617 = (qop != null); // Recognizes differences between RFC2069 and RFC2617 + + String digestResponse = Digest(username, realm, password, method, uri, + nonce, nc, cnonce, qop); + + String digest = "Digest username=\"" + username + "\", " + "realm=\"" + + realm + "\", " + "nonce=\"" + nonce + "\", " + "opaque=\"" + + opaque + "\", " + "uri=\"" + uri + "\", " + "response=\"" + + digestResponse + "\""; + + if (isRFC2617) { + digest += (", qop=\"" + qop + "\", " + "cnonce=\"" + cnonce + + "\", " + "nc=\"" + nc + "\""); + } + + return digest; + } + + public static Map parseAuthenticate(String s) { + String key = null; + String value = null; + int equalSign = 0; + HashMap map = new HashMap(); + StringTokenizer commaTokenizer = new StringTokenizer(s, ","); + + while (commaTokenizer.hasMoreTokens()) { + String token = commaTokenizer.nextToken(); + + if ((equalSign = token.indexOf("=")) >= 0) { + key = token.substring(0, equalSign).trim(); + value = removeQuotes(token.substring(equalSign + 1).trim()); + map.put(key, value); + + //cat.debug("parseAuthenticate:["+key+"]=["+value+"]"); + } + } + + return map; + } + + public static String Digest(String username, String realm, String password, + String method, String uri, String nonce, String nc, String cnonce, + String qop) { + String digestResponse = null; + boolean isRFC2617 = (qop != null); // Recognizes differences between RFC2069 and RFC2617 + + try { + MessageDigest md = MessageDigest.getInstance("MD5"); + + md.reset(); + + String a1 = username + ":" + realm + ":" + password; + + String digestA1 = HexUtils.convert(md.digest(a1.getBytes())); + cat.debug("evaluateMD5ResponseDigest: digestA1(" + a1 + ")=" + + digestA1); + + md.reset(); + + String a2 = method + ":" + uri; + String digestA2 = HexUtils.convert(md.digest(a2.getBytes())); + cat.debug("evaluateMD5ResponseDigest: digestA2(" + a2 + ")=" + + digestA2); + + md.reset(); + + String response = digestA1 + ":" + nonce; + + if (isRFC2617) { + response += (":" + nc + ":" + cnonce + ":" + qop); + } + + response += (":" + digestA2); + + digestResponse = HexUtils.convert(md.digest(response.getBytes())); + cat.debug("evaluateMD5ResponseDigest: digestResponse(" + response + + ")=" + digestResponse); + + return digestResponse; + } catch (Exception e) { + //cat.error("evaluateMD5ResponseDigest: Exception occurred!",e); + return digestResponse; + } + } + + public static String Digest(String value) { + String digestResponse = null; + + try { + MessageDigest md = MessageDigest.getInstance("MD5"); + + md.reset(); + + digestResponse = HexUtils.convert(md.digest(value.getBytes())); + + md.reset(); + } catch (Exception e) { + // cat.error("evaluateMD5ResponseDigest: Exception occurred!",e); + } + + return digestResponse; + } + + /** + * Removes the quotes on a string. + */ + public static String removeQuotes(String quotedString) { + quotedString = quotedString.replace('\"', ' '); + + return quotedString.trim(); + } +} diff --git a/src/main/java/org/realtor/rets/util/HexUtils.java b/src/main/java/org/realtor/rets/util/HexUtils.java new file mode 100644 index 0000000..679b001 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/HexUtils.java @@ -0,0 +1,88 @@ +package org.realtor.rets.util; + +import java.io.*; + + +public final class HexUtils { + /** + * Convert a String of hexadecimal digits into the corresponding + * byte array by encoding each two hexadecimal digits as a byte. + * + * @param digits Hexadecimal digits representation + * + * @exception IllegalArgumentException if an invalid hexadecimal digit + * is found, or the input string contains an odd number of hexadecimal + * digits + */ + public static byte[] convert(String digits) { + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + + for (int i = 0; i < digits.length(); i += 2) { + char c1 = digits.charAt(i); + + if ((i + 1) >= digits.length()) { + throw new IllegalArgumentException("Must be a hex number"); + } + + char c2 = digits.charAt(i + 1); + byte b = 0; + + if ((c1 >= '0') && (c1 <= '9')) { + b += ((c1 - '0') * 16); + } else if ((c1 >= 'a') && (c1 <= 'f')) { + b += ((c1 - 'a' + 10) * 16); + } else if ((c1 >= 'A') && (c1 <= 'F')) { + b += ((c1 - 'A' + 10) * 16); + } else { + throw new IllegalArgumentException("Must be a hex number"); + } + + if ((c2 >= '0') && (c2 <= '9')) { + b += (c2 - '0'); + } else if ((c2 >= 'a') && (c2 <= 'f')) { + b += (c2 - 'a' + 10); + } else if ((c2 >= 'A') && (c2 <= 'F')) { + b += (c2 - 'A' + 10); + } else { + throw new IllegalArgumentException("Must be a hex number"); + } + + baos.write(b); + } + + return (baos.toByteArray()); + } + + /** + * Convert a byte array into a printable format containing a + * String of hexadecimal digit characters (two per byte). + * + * @param bytes Byte array representation + */ + public static String convert(byte[] bytes) { + StringBuffer sb = new StringBuffer(bytes.length * 2); + + for (int i = 0; i < bytes.length; i++) { + sb.append(convertDigit((int) (bytes[i] >> 4))); + sb.append(convertDigit((int) (bytes[i] & 0x0f))); + } + + return (sb.toString()); + } + + /** + * [Private] Convert the specified value (0 .. 15) to the corresponding + * hexadecimal digit. + * + * @param value Value to be converted + */ + private static char convertDigit(int value) { + value &= 0x0f; + + if (value >= 10) { + return ((char) (value - 10 + 'a')); + } else { + return ((char) (value + '0')); + } + } +} diff --git a/src/main/java/org/realtor/rets/util/MD5Util.java b/src/main/java/org/realtor/rets/util/MD5Util.java new file mode 100644 index 0000000..6403822 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/MD5Util.java @@ -0,0 +1,68 @@ +/* + * MD5Util.java + * + * Created on November 21, 2001, 9:54 AM + */ +package org.realtor.rets.util; + +import java.security.*; + + +/** + * + * @version 1.0 + */ +public class MD5Util { + /** Creates new MD5Util */ + public MD5Util() { + } + + /** returns MD5 HEX value for a given string + * @param source string to convert + */ + public static String getDigestAsHexString(String source) { + return getDigestAsHexString(source.getBytes()); + } + + /** returns MD5 HEX value for a given a byte array + * @param source byte array to convert + */ + public static String getDigestAsHexString(byte[] source) { + String retStr = null; + + try { + MessageDigest md = MessageDigest.getInstance("MD5"); + md.reset(); + + byte[] digestBytes = md.digest(source); + retStr = convertToHex(digestBytes); + } catch (java.security.NoSuchAlgorithmException nsa) { + nsa.printStackTrace(); + } + + return retStr; + } + + /** Returns the HEX representation of a byte array + * @param source byte array to convert to HEX + */ + private static String convertToHex(byte[] source) { + String text; + int j; + int i; + text = ""; + + for (i = 0; i < 16; i++) { + j = source[i]; + j = j & 255; + + if (j <= 15) { + text += "0"; + } + + text += Integer.toHexString(j); + } + + return text; + } +} diff --git a/src/main/java/org/realtor/rets/util/PropertiesLocator.java b/src/main/java/org/realtor/rets/util/PropertiesLocator.java new file mode 100644 index 0000000..6a327b5 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/PropertiesLocator.java @@ -0,0 +1,34 @@ +/* $Header: /usr/local/cvsroot/rets/commons/src/main/java/org/realtor/rets/util/PropertiesLocator.java,v 1.2 2003/12/04 15:27:03 rsegelman Exp $ */ +package org.realtor.rets.util; + +import java.io.IOException; + +import java.util.Properties; + + +/** + * PropertiesLocator.java Created Aug 6, 2003 + * + * + * Copyright 2003, Avantia inc. + * @version $Revision: 1.2 $ + * @author scohen + */ +public class PropertiesLocator { + public static Properties locateProperties(String fileName) + throws PropertiesNotFoundException { + ClassLoader loader = PropertiesLocator.class.getClassLoader(); + Properties p = new Properties(); + + try { + p.load(loader.getResourceAsStream(fileName)); + } catch (IOException e) { + PropertiesNotFoundException nfe = new PropertiesNotFoundException( + "Could not find file " + fileName); + nfe.fillInStackTrace(); + throw nfe; + } + + return p; + } +} diff --git a/src/main/java/org/realtor/rets/util/PropertiesNotFoundException.java b/src/main/java/org/realtor/rets/util/PropertiesNotFoundException.java new file mode 100644 index 0000000..feec890 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/PropertiesNotFoundException.java @@ -0,0 +1,17 @@ +/* $Header: /usr/local/cvsroot/rets/commons/src/main/java/org/realtor/rets/util/PropertiesNotFoundException.java,v 1.2 2003/12/04 15:27:03 rsegelman Exp $ */ +package org.realtor.rets.util; + + +/** + * PropertiesNotFoundException.java Created Aug 6, 2003 + * + * + * Copyright 2003, Avantia inc. + * @version $Revision: 1.2 $ + * @author scohen + */ +public class PropertiesNotFoundException extends Exception { + public PropertiesNotFoundException(String message) { + super(message); + } +} diff --git a/src/main/java/org/realtor/rets/util/RETSCompactHandler.java b/src/main/java/org/realtor/rets/util/RETSCompactHandler.java new file mode 100644 index 0000000..be9e572 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/RETSCompactHandler.java @@ -0,0 +1,186 @@ +/* + * RETSCompactHandler.java + * + * Created on October 2, 2002, 8:45 AM + */ +package org.realtor.rets.util; + +import org.xml.sax.*; +import org.xml.sax.helpers.*; + +import java.io.*; + +import java.util.StringTokenizer; + +import javax.xml.parsers.*; + + +//import org.apache.xerces.parsers.SAXParser; +public class RETSCompactHandler extends DefaultHandler { + private OutputStream os = System.out; + private String delim = " "; + private StringBuffer textBuffer; + private String currentElement = null; + + public void setOutputStream(OutputStream p_os) { + this.os = p_os; + } + + private void nl() throws SAXException { + String lineEnd = "\r\n"; + + try { + os.write(lineEnd.getBytes()); + } catch (IOException e) { + throw new SAXException("I/O error", e); + } + } + + private void emit(String s) throws SAXException { + try { + os.write(s.getBytes()); + os.flush(); + } catch (IOException e) { + throw new SAXException("I/O error", e); + } + } + + public void startDocument() throws SAXException { + emit(""); + nl(); + } + + public void endDocument() throws SAXException { + try { + nl(); + os.flush(); + } catch (IOException e) { + throw new SAXException("I/O error", e); + } + } + + public void startElement(String namespaceURI, String sName, // simple name + String qName, // qualified name + Attributes attrs) throws SAXException { + textBuffer = null; + + String eName = qName; // element name + currentElement = qName; + + if (qName.equalsIgnoreCase("DELIMITER")) { + // delimiter is a 2 digit HEX value + String delimOct = attrs.getValue("", "value"); + delim = "" + (char) Integer.parseInt(delimOct, 16); + } + + if ("".equals(eName)) { + eName = qName; // not namespaceAware + } + + emit("<" + eName); + + if (attrs != null) { + for (int i = 0; i < attrs.getLength(); i++) { + String aName = attrs.getLocalName(i); // Attr name + + if ("".equals(aName)) { + aName = attrs.getQName(i); + } + + emit(" "); + emit(aName + "=\"" + attrs.getValue(i) + "\""); + } + } + + emit(">"); + } + + public void endElement(String namespaceURI, String sName, // simple name + String qName // qualified name + ) throws SAXException { + if (textBuffer != null) { + parseText(textBuffer.toString()); + } + + textBuffer = null; + + String eName = qName; // element name + + if ("".equals(eName)) { + eName = qName; // not namespaceAware + } + + emit(""); + nl(); + currentElement = null; + } + + public void characters(char[] buf, int offset, int len) + throws SAXException { + String s = new String(buf, offset, len); + + if (textBuffer == null) { + textBuffer = new StringBuffer(s); + } else { + textBuffer.append(s); + } + } + + public void parseText(String text) throws SAXException { + if (currentElement == null) { + emit(text); + + return; + } + + String eName = "d"; + + if (currentElement.equalsIgnoreCase("COLUMNS")) { + eName = "c"; + } + + String start = "<" + eName + ">"; + String end = ""; + + if (currentElement.equalsIgnoreCase("COLUMNS") || + currentElement.equalsIgnoreCase("DATA")) { + StringTokenizer st = new StringTokenizer(text, delim, true); + boolean firstToken = true; + boolean lastTokenDelim = false; + + while (st.hasMoreTokens()) { + String token = st.nextToken(); + + if (token.equalsIgnoreCase(delim)) { + if (lastTokenDelim) { + emit(start + end); + } + + lastTokenDelim = true; + } else { + emit(start + token + end); + lastTokenDelim = false; + } + } + } else { + emit(text); + } + } + + public static void main(String[] args) { + DefaultHandler h = new RETSCompactHandler(); + + //SAXParser p = new SAXParser(); + try { + SAXParserFactory spf = SAXParserFactory.newInstance(); + SAXParser p = spf.newSAXParser(); + + FileInputStream fis = new FileInputStream("c:/tmp/xx.xml"); + InputSource is = new InputSource(fis); + p.parse(is, h); + fis.close(); + } catch (Exception e) { + e.printStackTrace(); + } + } +} diff --git a/src/main/java/org/realtor/rets/util/RETSConfigurator.java b/src/main/java/org/realtor/rets/util/RETSConfigurator.java new file mode 100644 index 0000000..19018bd --- /dev/null +++ b/src/main/java/org/realtor/rets/util/RETSConfigurator.java @@ -0,0 +1,24 @@ +// $Header: /usr/local/cvsroot/rets/commons/src/main/java/org/realtor/rets/util/RETSConfigurator.java,v 1.2 2003/12/04 15:27:03 rsegelman Exp $ +package org.realtor.rets.util; + +import org.apache.log4j.*; + + +/** + * RETSConfigurator + * Singleton to limit number of times BasicConfigurator.configure is called. + */ +public class RETSConfigurator { + static boolean configured = false; + + private RETSConfigurator() { + } + + /** calls BasicConfigurator.configure() only once */ + static public void configure() { + if (!configured) { + BasicConfigurator.configure(); + configured = true; + } + } +} diff --git a/src/main/java/org/realtor/rets/util/RETSReplyCodes.java b/src/main/java/org/realtor/rets/util/RETSReplyCodes.java new file mode 100644 index 0000000..a132464 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/RETSReplyCodes.java @@ -0,0 +1,39 @@ +// $Header: /usr/local/cvsroot/rets/commons/src/main/java/org/realtor/rets/util/RETSReplyCodes.java,v 1.4 2005/04/06 12:44:06 ekovach Exp $ +package org.realtor.rets.util; + +import org.apache.log4j.Category; + +import java.util.Properties; + + +/** + * Handles the mapping of replyCodes to replyText + * + * @author $Author: ekovach $ + * @version $Revision: 1.4 $ + */ +public class RETSReplyCodes { + /** log4j Category object */ + static Category cat = Category.getInstance(RETSReplyCodes.class); + + /** holds the Properties (Codes->Text) that are loaded at startup. */ + static Properties replyCodesProperties = null; + + static { + try { + replyCodesProperties = PropertiesLocator.locateProperties( + "RETSReplyCodes.properties"); + } catch (Exception e) { + cat.error("Error Loading RETSReplyCodes.properties", e); + } + } + + /** + * get the ReplyText mapped by the ReplyCode + * @param code error code + * @return String of text mapped from code + */ + static public String get(int code) { + return replyCodesProperties.getProperty("" + code); + } +} diff --git a/src/main/java/org/realtor/rets/util/RETSRequestResponse.java b/src/main/java/org/realtor/rets/util/RETSRequestResponse.java new file mode 100644 index 0000000..622f18d --- /dev/null +++ b/src/main/java/org/realtor/rets/util/RETSRequestResponse.java @@ -0,0 +1,60 @@ +/** + * RETSRequestResponse.java + * + * @author jbrush + * @version + */ +package org.realtor.rets.util; + +import org.apache.log4j.*; + +import java.util.*; + + +/////////////////////////////////////////////////////////////////////// +public class RETSRequestResponse implements java.io.Serializable { + static Category cat = Category.getInstance(RETSRequestResponse.class); + private HashMap req = null; + private HashMap resp = null; + + public RETSRequestResponse() { + req = new HashMap(); + resp = new HashMap(); + } + + /////////////////////////////////////////////////////////////////////// + public void setRequestVariable(String key, String value) { + req.put(key, value); + } + + public String getRequestVariable(String key) { + return (String) req.get(key); + } + + public Map getRequestMap() { + return (Map) req; + } + + public void addToRequestMap(Map m) { + req.putAll(m); + } + + /////////////////////////////////////////////////////////////////////// + public void setResponseVariable(String key, String value) { + resp.put(key, value); + } + + public String getResponseVariable(String key) { + return (String) resp.get(key); + } + + public Map getResponseMap() { + return (Map) resp; + } + + public void addToResponseMap(Map m) { + resp.putAll(m); + } + + /////////////////////////////////////////////////////////////////////// +} diff --git a/src/main/java/org/realtor/rets/util/Resource.java b/src/main/java/org/realtor/rets/util/Resource.java new file mode 100644 index 0000000..70b371f --- /dev/null +++ b/src/main/java/org/realtor/rets/util/Resource.java @@ -0,0 +1,214 @@ +package org.realtor.rets.util; + +import java.io.*; + +import java.net.*; + +import java.util.*; + + +/** + * A class to locate resources, retrieve their contents, and determine their + * last modified time. To find the resource the class searches the CLASSPATH + * first, then Resource.class.getResource("/" + name). If the Resource finds + * a "file:" URL then the file path will be treated as a file. Otherwise the + * path is treated as a URL and has limited last modified info. + */ +public class Resource implements Serializable { + private String name; + private File file; + private URL url; + + public Resource(String name) throws IOException { + this.name = name; + + SecurityException exception = null; + + try { + // Search using the CLASSPATH. If found, "file" is set and the call + // returns true. A SecurityException may bubble up. + if (tryClasspath(name)) { + return; + } + } catch (SecurityException e) { + exception = e; // save for later + } + + try { + // Search using the class loader getResource(). If found as a file, + // "file" is set, if found as a URL then "url" is set. + if (tryLoader(name)) { + return; + } + } catch (SecurityException e) { + exception = e; // save for later + } + + // If we get here we failed, report the exception + String msg = ""; + + if (exception != null) { + msg = ": " + exception; + } + + throw new IOException("Resource '" + name + "' could not be found in " + + "the CLASSPATH (" + System.getProperty("java.class.path") + + "), nor could it be located by the classloader responsible for the " + + "web application (WEB-INF/classes)" + msg); + } + + /** + * Returns the resource name, as passed to the constructor. + */ + public String getName() { + return name; + } + + /** + * Returns an input stream to read the resource contents. + */ + public InputStream getInputStream() throws IOException { + if (file != null) { + return new BufferedInputStream(new FileInputStream(file)); + } else if (url != null) { + return new BufferedInputStream(url.openStream()); + } + + return null; + } + + /** + * Returns when the resource was last modified. If the resource was found + * using a URL, this method will only work if the URL connection supports + * last modified information. If there's no support, Long.MAX_VALUE is + * returned. Perhaps this should return -1 but we return MAX_VALUE on + * the assumption that if you can't determine the time, assume it's + * maximally new. + */ + public long lastModified() { + if (file != null) { + return file.lastModified(); + } else if (url != null) { + try { + return url.openConnection().getLastModified(); // hail mary + } catch (IOException e) { + return Long.MAX_VALUE; + } + } + + return 0; // can't happen + } + + /** + * Returns the directory containing the resource, or null if the resource + * isn't directly available on the filesystem. This value can be used to + * locate the config file on disk or write files in the same directory. + */ + public String getDirectory() { + if (file != null) { + return file.getParent(); + } else if (url != null) { + return null; + } + + return null; + } + + // Returns true if found + private boolean tryClasspath(String filename) { + String classpath = System.getProperty("java.class.path"); + String[] paths = split(classpath, File.pathSeparator); + file = searchDirectories(paths, filename); + + return (file != null); + } + + private static File searchDirectories(String[] paths, String filename) { + SecurityException exception = null; + + for (int i = 0; i < paths.length; i++) { + try { + File file = new File(paths[i], filename); + + if (file.exists() && !file.isDirectory()) { + return file; + } + } catch (SecurityException e) { + // Security exceptions can usually be ignored, but if all attempts + // to find the file fail, then report the (last) security exception. + exception = e; + } + } + + // Couldn't find any match + if (exception != null) { + throw exception; + } else { + return null; + } + } + + // Splits a String into pieces according to a delimiter. + // Uses JDK 1.1 classes for backward compatibility. + // JDK 1.4 actually has a split() method now. + private static String[] split(String str, String delim) { + // Use a Vector to hold the splittee strings + Vector v = new Vector(); + + // Use a StringTokenizer to do the splitting + StringTokenizer tokenizer = new StringTokenizer(str, delim); + + while (tokenizer.hasMoreTokens()) { + v.addElement(tokenizer.nextToken()); + } + + String[] ret = new String[v.size()]; + v.copyInto(ret); + + return ret; + } + + // Returns true if found + private boolean tryLoader(String name) { + name = "/" + name; + + URL res = Resource.class.getResource(name); + + if (res == null) { + return false; + } + + // Try converting from a URL to a File + File resFile = urlToFile(res); + + if (resFile != null) { + file = resFile; + } else { + url = res; + } + + return true; + } + + private static File urlToFile(URL res) { + String externalForm = res.toExternalForm(); + + if (externalForm.startsWith("file:")) { + return new File(externalForm.substring(5)); + } + + return null; + } + + public String toString() { + return "[Resource: File: " + file + " URL: " + url + "]"; + } + + public URL toURL() throws MalformedURLException { + if (file != null) { + return file.toURL(); + } else { + return url; + } + } +} diff --git a/src/main/java/org/realtor/rets/util/ResourceLocator.java b/src/main/java/org/realtor/rets/util/ResourceLocator.java new file mode 100644 index 0000000..74bd2fc --- /dev/null +++ b/src/main/java/org/realtor/rets/util/ResourceLocator.java @@ -0,0 +1,58 @@ +/* + * Created on Nov 19, 2003 + * + * To change the template for this generated file go to + * Window>Preferences>Java>Code Generation>Code and Comments + * + + * $Source: /usr/local/cvsroot/rets/commons/src/main/java/org/realtor/rets/util/ResourceLocator.java,v $ + + * $Date: 2003/11/21 16:16:08 $ + + * $Revision: 1.1.1.1 $ + + * + + ******************************************************************************* + +*/ +package org.realtor.rets.util; + +import java.util.HashMap; +import java.util.Map; + + +/** + * @author rsegelman + * + * To change the template for this generated type comment go to + * Window>Preferences>Java>Code Generation>Code and Comments + */ +public class ResourceLocator { + protected static Map map = new HashMap(); + + public static String locate(String resourceKey) { + if (get(resourceKey) == null) { + try { + Resource res = new Resource(resourceKey); + + String defaultSystemId; + defaultSystemId = res.getDirectory() + "/" + res.getName(); + + set(resourceKey, defaultSystemId); + } catch (Exception e) { + e.printStackTrace(); + } + } + + return get(resourceKey); + } + + public static String get(String resourceKey) { + return (String) map.get(resourceKey); + } + + public static void set(String resourceKey, String value) { + map.put(resourceKey, value); + } +} diff --git a/src/main/java/org/realtor/rets/util/XMLUtils.java b/src/main/java/org/realtor/rets/util/XMLUtils.java new file mode 100644 index 0000000..804ed89 --- /dev/null +++ b/src/main/java/org/realtor/rets/util/XMLUtils.java @@ -0,0 +1,249 @@ +/* + * XMLUtils.java + * + * Created on December 6, 2001, 1:21 PM + */ +package org.realtor.rets.util; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.OutputStream; +import java.io.StringReader; +import java.util.Iterator; +import java.util.Map; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.transform.OutputKeys; +import javax.xml.transform.Transformer; +import javax.xml.transform.TransformerConfigurationException; +import javax.xml.transform.TransformerException; +import javax.xml.transform.TransformerFactory; +import javax.xml.transform.dom.DOMSource; +import javax.xml.transform.stream.StreamResult; +import javax.xml.transform.stream.StreamSource; + +import org.apache.xpath.XPathAPI; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; +import org.xml.sax.InputSource; + + +/** + * Utilities for dealing with XML + * @author tweber + * @version 1.0 + */ +public class XMLUtils { + /** This method dumps out a dom document to an output stream. + * Header information is turned off. + * + * @param doc Dom Document + * @param os existing outputstream you wish to write the document to. + */ + public static void DOMtoOutputStream(Document doc, OutputStream os) { + try { + TransformerFactory tFactory = TransformerFactory.newInstance(); + Transformer transformer = tFactory.newTransformer(); + DOMSource src = new DOMSource(doc); + StreamResult result = new StreamResult(os); + + transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); + transformer.setOutputProperty(OutputKeys.INDENT, "yes"); + + //transformer.setOutputProperty(OutputKeys.METHOD, "xml"); + transformer.transform(src, result); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** Does an xsl tranformation of an XML document and returns a String result. + * + * @param xmlDoc string value of an xmlDocument + * @param xslFile filename of an XSL file. + */ + public static String transformXmlToString(String xmlDoc, String xslFile, + Map parameters) { + try { + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + transformXml(xmlDoc, xslFile, baos, parameters); + + return baos.toString(); + } catch (Exception e) { + e.printStackTrace(); + } + + return null; + } + + public static String transformXmlToString(String xmlDoc, String xslFile) { + return transformXmlToString(xmlDoc, xslFile, null); + } + + public static void transformXml(String xmlDoc, String xslFile, + OutputStream os) { + transformXml(xmlDoc, xslFile, os, null); + } + + /** Does an xsl tranformation of an XML document and writes the result. + * to an output stream. + * + * @param xmlDoc string value of an xmlDocument + * @param xslFile filename of an XSL file. + * @param os OutputStream to write the results to. + */ + public static void transformXml(String xmlDoc, String xslFile, + OutputStream os, Map parameters) { + try { + File stylesheet = new File(xslFile); + DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); + DocumentBuilder builder = factory.newDocumentBuilder(); + ByteArrayInputStream bais = new ByteArrayInputStream(xmlDoc.getBytes()); + + String urlString= "file:"+ResourceLocator.locate("dummy.dtd"); + System.out.println("URL String:"+urlString); + Document document = builder.parse(bais,urlString); + + // Use a Transformer for output + TransformerFactory tFactory = TransformerFactory.newInstance(); + StreamSource stylesource = new StreamSource(stylesheet); + Transformer transformer = tFactory.newTransformer(stylesource); + + DOMSource source = new DOMSource(document); + StreamResult result = new StreamResult(os); + + if (parameters != null) { + Iterator iter = parameters.keySet().iterator(); + + while (iter.hasNext()) { + String key = (String) iter.next(); + transformer.setParameter(key, parameters.get(key)); + } + } + + transformer.transform(source, result); + } catch (TransformerConfigurationException tce) { + // Error generated by the parser + System.out.println("\n** Transformer Factory error"); + System.out.println(" " + tce.getMessage()); + + // Use the contained exception, if any + Throwable x = tce; + + if (tce.getException() != null) { + x = tce.getException(); + } + + x.printStackTrace(); + } catch (TransformerException te) { + // Error generated by the parser + System.out.println("\n** Transformation error"); + System.out.println(" " + te.getMessage()); + + // Use the contained exception, if any + Throwable x = te; + + if (te.getException() != null) { + x = te.getException(); + } + + x.printStackTrace(); + } catch (Exception e) { + // error + e.printStackTrace(); + } + } + + /** Creates an Element and sets the text value of the element. Appends the + * element to rootNode. + * + * @param doc DOM Document + * @param rootNode node to add an element to + * @param elementName name of the new element + * @param elementValue value of the new element. + */ + public static void addTextElement2Node(Document doc, Node rootNode, + String elementName, String elementValue) { + try { + Element element = doc.createElement(elementName); + Node text = doc.createTextNode(elementValue); + element.appendChild(text); + + //doc.appendChild(element); + rootNode.appendChild(element); + } catch (Exception e) { + e.printStackTrace(); + } + } + + public static NodeList executeXpathQuery(Node root, String query) + throws TransformerException { + return XPathAPI.selectNodeList(root, query); + } + + public static void printNodeList(NodeList list) { + for (int i = 0; i < list.getLength(); i++) { + printNode(list.item(i), ""); + System.out.println("############################"); + } + } + + public static void printNode(Node node, String indent) { + String nodeName = node.getNodeName(); + System.out.print(indent); + + if (nodeName.equals("#text")) { + String nodeText = node.getNodeValue(); + + if ((nodeText != null) && (nodeText.trim().length() > 0)) { + System.out.print(nodeText.trim()); + } + } else { + System.out.print(nodeName); + } + + System.out.print(" "); + + if (!nodeName.equals("#text")) { + NamedNodeMap attrs = node.getAttributes(); + + if (attrs != null) { + for (int i = 0; i < attrs.getLength(); i++) { + Node attr = attrs.item(i); + System.out.print(attr.getNodeName() + "=\"" + + attr.getNodeValue() + "\" "); + } + } + } + + NodeList children = node.getChildNodes(); + + for (int i = 0; i < children.getLength(); i++) { + System.out.println(); + printNode(children.item(i), indent + "\t"); + } + } + + public static Document stringToDocument(String xml) { + Document doc = null; + DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); + + // Turn on validation, and turn off namespaces + factory.setValidating(false); + factory.setNamespaceAware(false); + + try { + DocumentBuilder builder = factory.newDocumentBuilder(); + doc = builder.parse(new InputSource(new StringReader(xml))); + } catch (Exception e) { + e.printStackTrace(); + } + + return doc; + } +} diff --git a/target/classes/log4j.properties b/target/classes/log4j.properties new file mode 100644 index 0000000..a4e6cd2 --- /dev/null +++ b/target/classes/log4j.properties @@ -0,0 +1,38 @@ +log4j.rootCategory=error, stdout + +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n + + +# client API logfile +log4j.appender.R1=org.apache.log4j.RollingFileAppender +log4j.appender.R1.File=/tmp/retsClientAPI.log +log4j.appender.R1.MaxFileSize=100KB +log4j.appender.R1.MaxBackupIndex=3 +log4j.appender.R1.layout=org.apache.log4j.PatternLayout +log4j.appender.R1.layout.ConversionPattern=%p %t %c CLIENTAPI- %m%n + + +# server logfile +log4j.appender.R2=org.apache.log4j.RollingFileAppender +log4j.appender.R2.File=/tmp/retsServer.log +log4j.appender.R2.MaxFileSize=100KB +log4j.appender.R2.MaxBackupIndex=3 +log4j.appender.R2.layout=org.apache.log4j.PatternLayout +log4j.appender.R2.layout.ConversionPattern=%p %t %c SERVER - %m%n + +# setup RETS client API logging +log4j.category.org.realtor.rets.retsapi=debug, R1 +log4j.category.org.realtor.rets.util=debug, R1 + + +# setup RETS server logging +log4j.category.org.realtor.rets.server=debug, R2, stdout +log4j.category.org.realtor.rets.util=debug, R2 +log4j.category.org.realtor.rets.persistance=error, R2 + + +log4j.additivity.org.realtor.rets.server=false +log4j.additivity.org.realtor.rets.retsapi=false +log4j.additivity.org.realtor.rets.util=false diff --git a/target/lib/commons-collections-1.0.jar b/target/lib/commons-collections-1.0.jar new file mode 100644 index 0000000..fd0eaee Binary files /dev/null and b/target/lib/commons-collections-1.0.jar differ diff --git a/target/lib/commons-lang-1.0-mod.jar b/target/lib/commons-lang-1.0-mod.jar new file mode 100644 index 0000000..8692ee0 Binary files /dev/null and b/target/lib/commons-lang-1.0-mod.jar differ diff --git a/target/lib/db-ojb-1.0.rc3.jar b/target/lib/db-ojb-1.0.rc3.jar new file mode 100644 index 0000000..94a7d25 Binary files /dev/null and b/target/lib/db-ojb-1.0.rc3.jar differ diff --git a/target/lib/log4j-1.2.5.jar b/target/lib/log4j-1.2.5.jar new file mode 100644 index 0000000..c7111d8 Binary files /dev/null and b/target/lib/log4j-1.2.5.jar differ diff --git a/target/lib/mail.jar b/target/lib/mail.jar new file mode 100644 index 0000000..eb2269d Binary files /dev/null and b/target/lib/mail.jar differ diff --git a/target/retsCommons.jar b/target/retsCommons.jar new file mode 100644 index 0000000..aeb5e72 Binary files /dev/null and b/target/retsCommons.jar differ