com.adventnet.zoho.client.report
Class ReportClientHelper
java.lang.Object
com.adventnet.zoho.client.report.ReportClientHelper
public class ReportClientHelper
- extends java.lang.Object
Method Summary |
static org.apache.commons.httpclient.HttpMethod |
addParams(java.lang.String authtoken,
java.lang.String url,
java.lang.String action,
java.lang.String exportFormat,
java.util.Map params,
java.lang.String[] addParams)
|
static java.lang.String |
checkAndAppendQMark(java.lang.String url)
|
static void |
close(java.io.Closeable... args)
|
static org.w3c.dom.Document |
getAsDoc(java.lang.String response)
|
static java.lang.String |
getInfo(org.w3c.dom.Document doc,
java.lang.String elName,
java.lang.String response)
|
static java.lang.String |
getInfo(org.w3c.dom.Document doc,
java.lang.String elName,
java.lang.String response,
boolean throwIfNotPresent)
|
static java.lang.String |
getStringResponse(java.io.InputStream reader)
|
static void |
validateURL(java.lang.String url)
|
static java.lang.String |
xmlToString(org.w3c.dom.Document doc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReportClientHelper
public ReportClientHelper()
getAsDoc
public static org.w3c.dom.Document getAsDoc(java.lang.String response)
throws ParseException
- Throws:
ParseException
xmlToString
public static java.lang.String xmlToString(org.w3c.dom.Document doc)
checkAndAppendQMark
public static java.lang.String checkAndAppendQMark(java.lang.String url)
addParams
public static org.apache.commons.httpclient.HttpMethod addParams(java.lang.String authtoken,
java.lang.String url,
java.lang.String action,
java.lang.String exportFormat,
java.util.Map params,
java.lang.String[] addParams)
throws java.io.IOException
- Throws:
java.io.IOException
getInfo
public static java.lang.String getInfo(org.w3c.dom.Document doc,
java.lang.String elName,
java.lang.String response)
throws ParseException
- Throws:
ParseException
getInfo
public static java.lang.String getInfo(org.w3c.dom.Document doc,
java.lang.String elName,
java.lang.String response,
boolean throwIfNotPresent)
throws ParseException
- Throws:
ParseException
validateURL
public static void validateURL(java.lang.String url)
throws java.lang.Exception
- Throws:
java.lang.Exception
close
public static void close(java.io.Closeable... args)
getStringResponse
public static java.lang.String getStringResponse(java.io.InputStream reader)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2018 AdventNet Inc. All Rights Reserved.