Package com.aq.aqconnect
Class AQRestClient
- java.lang.Object
-
- com.aq.aqconnect.AQRestClient
-
public class AQRestClient extends Object
-
-
Constructor Summary
Constructors Constructor Description AQRestClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableSSLChecks(Boolean check)StringgetAbortURL(String jobPid)StringgetBaseURL()org.json.simple.JSONObjectgetJobSummary(long runPid, String apiKey, String userId)StringgetResultExternalAccessURL(String jobPid, String tenantCode)voidsetUpBaseURL(String baseURL, String tenantCode)voidsetUpProxy(String proxyHost, int proxyPort)StringtestConnection(String apiKey, String userId, String jobId, String runParam, int maxWaitTime)org.json.simple.JSONObjecttriggerJob(String apiKey, String userId, String jobId, String runParam, int maxWaitTime)
-
-
-
Method Detail
-
getBaseURL
public String getBaseURL()
-
getResultExternalAccessURL
public String getResultExternalAccessURL(String jobPid, String tenantCode)
-
getJobSummary
public org.json.simple.JSONObject getJobSummary(long runPid, String apiKey, String userId)
-
triggerJob
public org.json.simple.JSONObject triggerJob(String apiKey, String userId, String jobId, String runParam, int maxWaitTime) throws IOException, org.json.simple.parser.ParseException
- Throws:
IOExceptionorg.json.simple.parser.ParseException
-
testConnection
public String testConnection(String apiKey, String userId, String jobId, String runParam, int maxWaitTime) throws org.json.simple.parser.ParseException, IOException
- Throws:
org.json.simple.parser.ParseExceptionIOException
-
setUpProxy
public void setUpProxy(String proxyHost, int proxyPort)
-
disableSSLChecks
public void disableSSLChecks(Boolean check)
-
-