public class RestServices extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
RestServices() |
| Modifier and Type | Method and Description |
|---|---|
com.sun.jersey.api.client.ClientResponse |
downloadExecutionReport(String url,
String accessId,
String secretKey,
String reportKey)
Gets the status of the running or recently completed execution
Request/Response Example:
-Request:
https://mycloud.perfectomobile.com/services/reports/
|
com.sun.jersey.api.client.ClientResponse |
executeScript(String url,
String accessId,
String secretKey,
String script,
String optinalParameters)
Starts a new asynchronous execution of the specified script and returns
immediately with the response data.
|
com.sun.jersey.api.client.ClientResponse |
getExecutionStatus(String url,
String accessId,
String secretKey,
String executionId)
Gets the status of the running or recently completed execution
Request/Response Example:
-Request:
https://mycloud.perfectomobile.com/services/executions/
|
com.sun.jersey.api.client.ClientResponse |
getHandsets(String url,
String accessId,
String secretKey)
Get List of available devices.
|
static RestServices |
getInstance() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getQueryParamForOptinalParameters(String optinalParameters)
This method gets parameters as they appears in Jenkins textarea field and
returns Map object that holds parameter name and parameter value.
|
com.sun.jersey.api.client.ClientResponse |
getRepoScripts(String url,
String accessId,
String secretKey)
Get list of available scripts Example:
https://www.perfectomobile.com/services/repositories/scripts?
operation=list
&user=jenkins@perfectomobile.com&password=Perfecto1&responseFormat=xml
|
com.sun.jersey.api.client.ClientResponse |
getRepoScriptsItems(String url,
String accessId,
String secretKey,
String script)
Get script variables Example:
https://www.perfectomobile.com/services/repositories
/scripts/PRIVATE:variables.xml?
operation=download&user=jenkins@perfectomobile.com&password=Perfecto1
|
void |
setLogger(PrintStream logger) |
public static RestServices getInstance()
public void setLogger(PrintStream logger)
public com.sun.jersey.api.client.ClientResponse getHandsets(String url, String accessId, String secretKey) throws IOException, javax.servlet.ServletException
url - accessId - secretKey - IOExceptionjavax.servlet.ServletExceptionpublic com.sun.jersey.api.client.ClientResponse getRepoScripts(String url, String accessId, String secretKey) throws IOException, javax.servlet.ServletException
url - accessId - secretKey - IOExceptionjavax.servlet.ServletExceptionpublic com.sun.jersey.api.client.ClientResponse getRepoScriptsItems(String url, String accessId, String secretKey, String script) throws IOException, javax.servlet.ServletException
url - accessId - secretKeyprintRequest - script - IOExceptionjavax.servlet.ServletExceptionpublic com.sun.jersey.api.client.ClientResponse executeScript(String url, String accessId, String secretKey, String script, String optinalParameters) throws IOException, javax.servlet.ServletException
url - accessId - secretKey - script - optinalParameters - IOExceptionjavax.servlet.ServletExceptionhttp://help.perfectomobile.com/article/AA-00209/0public com.sun.jersey.api.client.ClientResponse getExecutionStatus(String url, String accessId, String secretKey, String executionId) throws IOException, javax.servlet.ServletException
url - accessId - secretKey - executionId - IOExceptionjavax.servlet.ServletException://help.perfectomobile.com/article/AA-00303/51/Guides-Documentation
/HTTP-API/Operations/Script-Operations/02.-Get-Execution-Status.htmlpublic com.sun.jersey.api.client.ClientResponse downloadExecutionReport(String url, String accessId, String secretKey, String reportKey) throws IOException, javax.servlet.ServletException
url - accessId - secretKey - reportKey - IOExceptionjavax.servlet.ServletExceptionhttp://help.perfectomobile.com/article/AA-00308/0public javax.ws.rs.core.MultivaluedMap<String,String> getQueryParamForOptinalParameters(String optinalParameters)
optinalParameters - Copyright © 2004-2014. All Rights Reserved.