USRE-87 Change import from common package by common package renamed

This commit is contained in:
YuCheng Hu 2021-11-30 11:14:28 -05:00
parent 79a2ebf081
commit d4a9089097
9 changed files with 13 additions and 42 deletions

View File

@ -1,10 +1,10 @@
package com.ossez.usreio.client;
import com.ossez.usreio.common.util.CaseInsensitiveTreeMap;
import java.io.InputStream;
import java.util.Map;
import com.ossez.usreio.common.util.CaseInsensitiveTreeMap;
/**
* Representation of a single object returned
* from a RETS server.

View File

@ -1,7 +1,7 @@
package com.ossez.usreio.client.retsapi;
import org.realtor.rets.util.DesCrypter;
import com.ossez.usreio.common.util.DesCrypter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -7,11 +7,12 @@ package com.ossez.usreio.client.retsapi;
//import com.aftexsw.util.bzip.CBZip2InputStream;
import com.ossez.usreio.common.util.RETSConfigurator;
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.cookie.CookiePolicy;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.methods.PostMethod;
import org.realtor.rets.util.RETSConfigurator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,7 +1,7 @@
package com.ossez.usreio.client.retsapi;
import org.realtor.rets.util.AttributeExtracter;
import org.realtor.rets.util.ResourceLocator;
import com.ossez.usreio.common.util.AttributeExtracter;
import com.ossez.usreio.common.util.ResourceLocator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.helpers.DefaultHandler;
@ -11,12 +11,10 @@ import javax.xml.parsers.SAXParserFactory;
import java.io.ByteArrayInputStream;
import java.util.HashMap;
/**
* RETSSearchTransaction.java
* RETSSearchTransaction
*
* @author jbrush
* @version 1.0
* @author YuCheng Hu
*/
public class RETSSearchTransaction extends RETSTransaction {
private final static Logger logger = LoggerFactory.getLogger(RETSSearchTransaction.class);

View File

@ -6,9 +6,10 @@
*/
package com.ossez.usreio.client.retsapi;
import com.ossez.usreio.common.util.RETSRequestResponse;
import org.apache.regexp.RE;
import org.apache.regexp.RESyntaxException;
import org.realtor.rets.util.RETSRequestResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,12 +0,0 @@
package com.ossez.usreio.common.util;
import java.io.Serializable;
import java.util.Comparator;
public class CaseInsensitiveComparator<T> implements Comparator<T>, Serializable {
public int compare(Object o1, Object o2) {
String s1 = (String) o1;
String s2 = (String) o2;
return s1.compareToIgnoreCase(s2);
}
}

View File

@ -1,17 +0,0 @@
package com.ossez.usreio.common.util;
import java.util.Map;
import java.util.TreeMap;
public class CaseInsensitiveTreeMap<K, V> extends TreeMap<K, V> {
public CaseInsensitiveTreeMap(Map<K, V> map) {
this();
this.putAll(map);
}
public CaseInsensitiveTreeMap() {
super(new CaseInsensitiveComparator());
}
}

View File

@ -1,4 +1,4 @@
package com.ossez.usreio.common.util;
package com.ossez.usreio.util;
import com.ossez.usreio.client.*;
import org.apache.commons.lang3.ObjectUtils;

View File

@ -3,7 +3,7 @@ package com.ossez.usreio.tests.client;
import com.ossez.usreio.client.RetsException;
import com.ossez.usreio.client.RetsSession;
import com.ossez.usreio.client.RetsVersion;
import com.ossez.usreio.common.util.SessionUtils;
import com.ossez.usreio.util.SessionUtils;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.slf4j.Logger;