com.adventnet.zoho.client.report
Class BaseClient
java.lang.Object
com.adventnet.zoho.client.report.BaseClient
- Direct Known Subclasses:
- ReportClient
public class BaseClient
- extends java.lang.Object
Used internally.
Method Summary |
protected static java.lang.String |
eP(java.lang.String value)
|
protected static java.lang.String |
eQ(java.lang.String value)
|
protected org.apache.commons.httpclient.HttpClient |
getClient(java.lang.String url)
|
protected java.lang.String |
getOAuth(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String refreshToken)
|
protected java.lang.Object |
handleResponse(org.apache.commons.httpclient.HttpMethod method,
java.lang.String action,
java.lang.Object callBackData)
|
protected void |
logIfNeeded(ImportResult ir)
|
protected void |
logIfNeeded(java.lang.String defaultMsg)
|
protected java.lang.Object |
sendRequest(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method,
java.lang.String action,
java.lang.Object callBackData)
|
void |
setIamServerURL(java.lang.String url)
|
void |
setReportServerURL(java.lang.String url)
|
protected void |
setSSLProtocol(java.lang.String url)
|
protected void |
writeLine(java.lang.Appendable writer,
java.lang.String curLine,
boolean isHeader)
|
protected void |
writeLine(java.io.Writer writer,
java.lang.String curLine,
boolean isHeader)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iamServerURL
protected java.lang.String iamServerURL
reportServerURL
protected java.lang.String reportServerURL
authtoken
protected java.lang.String authtoken
clientId
protected java.lang.String clientId
clientSecret
protected java.lang.String clientSecret
refreshToken
protected java.lang.String refreshToken
isOAuth
protected java.lang.Boolean isOAuth
DEFAULTTIMEOUT
protected static final int DEFAULTTIMEOUT
- See Also:
- Constant Field Values
timeOut
protected int timeOut
READTIMEOUT
protected static final int READTIMEOUT
- See Also:
- Constant Field Values
readTimeout
protected int readTimeout
domainAuthorization
protected java.lang.Boolean domainAuthorization
skipParseError
protected java.lang.Boolean skipParseError
proxyInfo
protected java.lang.Object[][] proxyInfo
userEmailId
protected java.lang.String userEmailId
password
protected java.lang.String password
BaseClient
public BaseClient()
getClient
protected org.apache.commons.httpclient.HttpClient getClient(java.lang.String url)
logIfNeeded
protected void logIfNeeded(ImportResult ir)
logIfNeeded
protected void logIfNeeded(java.lang.String defaultMsg)
writeLine
protected void writeLine(java.io.Writer writer,
java.lang.String curLine,
boolean isHeader)
throws java.io.IOException
- Throws:
java.io.IOException
writeLine
protected void writeLine(java.lang.Appendable writer,
java.lang.String curLine,
boolean isHeader)
throws java.io.IOException
- Throws:
java.io.IOException
eQ
protected static java.lang.String eQ(java.lang.String value)
throws org.apache.commons.httpclient.URIException
- Throws:
org.apache.commons.httpclient.URIException
eP
protected static java.lang.String eP(java.lang.String value)
throws org.apache.commons.httpclient.URIException
- Throws:
org.apache.commons.httpclient.URIException
sendRequest
protected java.lang.Object sendRequest(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method,
java.lang.String action,
java.lang.Object callBackData)
throws java.io.IOException,
ServerException,
ParseException
- Throws:
java.io.IOException
ServerException
ParseException
handleResponse
protected java.lang.Object handleResponse(org.apache.commons.httpclient.HttpMethod method,
java.lang.String action,
java.lang.Object callBackData)
throws java.io.IOException,
ParseException
- Throws:
java.io.IOException
ParseException
setSSLProtocol
protected void setSSLProtocol(java.lang.String url)
getOAuth
protected java.lang.String getOAuth(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String refreshToken)
throws ServerException,
java.io.IOException,
org.json.JSONException
- Throws:
ServerException
java.io.IOException
org.json.JSONException
setReportServerURL
public void setReportServerURL(java.lang.String url)
setIamServerURL
public void setIamServerURL(java.lang.String url)
Copyright © 2018 AdventNet Inc. All Rights Reserved.