Config.java
This file contains the common configurations used in the samples, like API key, Database Name, Login Name & Password and Proxy details, if any. Update the configurations in the below code and try out the samples with it:
public class Config
{
static final String APIKEY="yourapikey";
static final String DATABASENAME="yourdbname";
static final String LOGINNAME="yourloginname";
static final String PASSWORD="yourpassword";
//Set USEPROXY to true if proxy is present.
static final boolean USEPROXY=false;
static final String PROXYSERVER="your proxy server ip or host name";
static final int PROXYPORT=80;
static final String PROXYUSERNAME="your proxy user name";
static final String PROXYPASSWORD="your proxy password";
public static ReportClient getReportClient()
{
ReportClient rc = new ReportClient(APIKEY);
if (USEPROXY)
{
rc.setProxy(PROXYSERVER,PROXYPORT,
PROXYUSERNAME,PROXYPASSWORD,"BOTH");
}
return rc;
}
}