|
|||||||||
| 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.
| 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 | |
|---|---|
boolean |
getAutoDigest()
Is the client set for auto digest. |
boolean |
getAutoLogin()
Is the client set for auto login. |
com.bigllc.retsiq.api.RETSConstants.Version |
getDefaultRetsVersion()
|
RETSUserSession |
getSession(java.lang.String username,
java.lang.String password)
Authenticate a user and get a session for them. |
void |
setAutoDigest(boolean doAutoDigest)
Set whether auto digest should be performed. |
void |
setAutoLogin(boolean doAutoLogin)
Set whether auto login should be performed. |
void |
setDefaultRetsVersion(com.bigllc.retsiq.api.RETSConstants.Version version)
|
| 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)
public RETSUserSession getSession(java.lang.String username,
java.lang.String password)
throws RETSClientException
username - the usernamepassword - the password
RETSClientException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||