|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bigllc.retsiq.simpleclient.RETSConnection
public class RETSConnection
RETS server connection. This class is used to configure the server details and create authenticated RETS user sessions.
| Nested Class Summary | |
|---|---|
static class |
RETSConnection.HttpMethodType
HTTP method to use for requests. |
| Constructor Summary | |
|---|---|
RETSConnection(java.lang.String url)
Construct a connection factory to RETS server. |
|
RETSConnection(java.lang.String url,
java.lang.String userAgent)
Construct a connection factory to RETS server with a custom user agent string. |
|
RETSConnection(java.lang.String url,
java.lang.String userAgent,
java.lang.String userAgentPassword)
Construct a connection factory to RETS server that requires user agent authentication. |
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
getAutoDigest()
Is the client set for auto digest. |
boolean |
getAutoLogin()
Is the client set for auto login. |
RETSConnection.HttpMethodType |
getDefaultHttpMethodType()
Get the default http method to use for RETS transactions. |
com.bigllc.retsiq.api.RETSConstants.Version |
getDefaultRetsVersion()
Get the RETS version that the client uses on initiation. |
boolean |
getFixCompactSearchXmlEncoding()
Get whether the input stream for compact search is being fixed for XML encoding issues. |
RETSUserSession |
getSession(java.lang.String username,
java.lang.String password)
Authenticate a user and get a session for them. |
RETSUserSession |
getSession(java.lang.String username,
java.lang.String password,
java.lang.String host,
java.lang.String domain)
Authenticate a user and get a session for them. |
boolean |
getUseCompression()
Check if the client is configured to request compressed responses. |
boolean |
getUseMultiThreadedConnectionManager()
Check if using the multi-threaded connection manager. |
boolean |
getUseSingleCookieHeader()
Get whether cookies should will be put in a single response header. |
void |
setAutoDigest(boolean doAutoDigest)
Set whether auto digest should be performed. |
void |
setAutoLogin(boolean doAutoLogin)
Set whether auto login should be performed. |
void |
setDefaultHttpMethodType(RETSConnection.HttpMethodType methodType)
Set the default http method to use for RETS transactions. |
void |
setDefaultRetsVersion(com.bigllc.retsiq.api.RETSConstants.Version version)
Set the RETS version that the client should use on initiation. |
void |
setFixCompactSearchXmlEncoding(boolean fix)
Set whether the input stream for compact search should be fixed for XML encoding that cause XML parsing errors. |
void |
setSocketTimeout(int socketTimeout)
Set the socket timeout in milliseconds which is the timeout for waiting for data. |
void |
setUseCompression(boolean useCompression)
Configure the client to request compressed responses. |
void |
setUseMultiThreadedConnectionManager(boolean useMultiThreadedConnectionManager)
Use the multi-threaded connection manager. |
void |
setUseSingleCookieHeader(boolean useSingleHeader)
Define whether cookies should be put in a single response header. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RETSConnection(java.lang.String url)
throws java.net.MalformedURLException
url - the full login url to the target RETS server
java.net.MalformedURLException
public RETSConnection(java.lang.String url,
java.lang.String userAgent)
throws java.net.MalformedURLException
url - the full login url to the targer RETS serveruserAgent - the user agent string to be sent with request in the
format USERAGENT/VERSION.
java.net.MalformedURLException
public RETSConnection(java.lang.String url,
java.lang.String userAgent,
java.lang.String userAgentPassword)
throws java.net.MalformedURLException
url - the full login url to the targer RETS serveruserAgent - the user agent string to be sent with request in the
format USERAGENT/VERSION.userAgentPassword - the user agent password.
java.net.MalformedURLException| Method Detail |
|---|
public boolean getAutoLogin()
public void setAutoLogin(boolean doAutoLogin)
doAutoLogin - should auto login be performedpublic boolean getAutoDigest()
public void setAutoDigest(boolean doAutoDigest)
doAutoDigest - should auto digest be performedpublic com.bigllc.retsiq.api.RETSConstants.Version getDefaultRetsVersion()
public void setDefaultRetsVersion(com.bigllc.retsiq.api.RETSConstants.Version version)
version - the RETS versionpublic boolean getUseCompression()
public boolean getUseMultiThreadedConnectionManager()
public void setUseMultiThreadedConnectionManager(boolean useMultiThreadedConnectionManager)
useMultiThreadedConnectionManager - true to use the
multi-threaded connection manager.public void setUseSingleCookieHeader(boolean useSingleHeader)
useSingleHeader - true to use single header.public boolean getUseSingleCookieHeader()
useSingleHeader - true to use single header.public void setUseCompression(boolean useCompression)
useCompression - true if requests should send accept gzip
encoding headerpublic void setFixCompactSearchXmlEncoding(boolean fix)
fix - true to turn on encoding fixpublic boolean getFixCompactSearchXmlEncoding()
public void setSocketTimeout(int socketTimeout)
socketTimeout - the timeout in milliseconds.public RETSConnection.HttpMethodType getDefaultHttpMethodType()
public void setDefaultHttpMethodType(RETSConnection.HttpMethodType methodType)
methodType - the method type.
public RETSUserSession getSession(java.lang.String username,
java.lang.String password)
throws RETSClientException
username - the usernamepassword - the password
RETSClientException
public RETSUserSession getSession(java.lang.String username,
java.lang.String password,
java.lang.String host,
java.lang.String domain)
throws RETSClientException
username - the usernamepassword - the passwordhost - the hostdomain - the domain
RETSClientException
public void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||