|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.daisy.pipeline.client.Jobs
public class Jobs
Methods for communicating with the "/jobs" resource in a Pipeline 2 Web Service.
http://code.google.com/p/daisy-pipeline/wiki/WebServiceAPI#Jobs
Constructor Summary | |
---|---|
Jobs()
|
Method Summary | |
---|---|
static Pipeline2WSResponse |
delete(java.lang.String endpoint,
java.lang.String username,
java.lang.String secret,
java.lang.String id)
Delete a single job HTTP 204 No Content: Successfully processed the request, no content being returned HTTP 401 Unauthorized: Client was not authorized to perform request. |
static Pipeline2WSResponse |
get(java.lang.String endpoint,
java.lang.String username,
java.lang.String secret)
Get all jobs HTTP 200 OK: Response body contains XML data HTTP 401 Unauthorized: Client was not authorized to perform request. |
static Pipeline2WSResponse |
get(java.lang.String endpoint,
java.lang.String username,
java.lang.String secret,
java.lang.String id,
java.lang.Integer fromSequence)
Get a single job HTTP 200 OK: Response body contains XML data HTTP 401 Unauthorized: Client was not authorized to perform request. |
static Pipeline2WSResponse |
getLog(java.lang.String endpoint,
java.lang.String username,
java.lang.String secret,
java.lang.String id)
Get the log file for a job HTTP 200 OK: Response body contains plain text data HTTP 401 Unauthorized: Client was not authorized to perform request. |
static Pipeline2WSResponse |
getResult(java.lang.String endpoint,
java.lang.String username,
java.lang.String secret,
java.lang.String id)
Get the result for a job HTTP 200 OK: Response body contains Zip data HTTP 401 Unauthorized: Client was not authorized to perform request. |
static Pipeline2WSResponse |
post(java.lang.String endpoint,
java.lang.String username,
java.lang.String secret,
java.lang.String href,
java.util.List<Argument> arguments,
java.io.File contextZipFile,
java.util.Map<java.lang.String,java.lang.String> callbacks)
Create a job with files HTTP 201 Created: The URI of the new job is found in the HTTP location header HTTP 400 Bad Request: Errors in the parameters such as invalid script name HTTP 401 Unauthorized: Client was not authorized to perform request. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Jobs()
Method Detail |
---|
public static Pipeline2WSResponse get(java.lang.String endpoint, java.lang.String username, java.lang.String secret) throws Pipeline2WSException
Pipeline2WSException
public static Pipeline2WSResponse post(java.lang.String endpoint, java.lang.String username, java.lang.String secret, java.lang.String href, java.util.List<Argument> arguments, java.io.File contextZipFile, java.util.Map<java.lang.String,java.lang.String> callbacks) throws Pipeline2WSException
Pipeline2WSException
public static Pipeline2WSResponse get(java.lang.String endpoint, java.lang.String username, java.lang.String secret, java.lang.String id, java.lang.Integer fromSequence) throws Pipeline2WSException
Pipeline2WSException
public static Pipeline2WSResponse delete(java.lang.String endpoint, java.lang.String username, java.lang.String secret, java.lang.String id)
public static Pipeline2WSResponse getResult(java.lang.String endpoint, java.lang.String username, java.lang.String secret, java.lang.String id) throws Pipeline2WSException
Pipeline2WSException
public static Pipeline2WSResponse getLog(java.lang.String endpoint, java.lang.String username, java.lang.String secret, java.lang.String id) throws Pipeline2WSException
Pipeline2WSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |