org.daisy.pipeline.client
Class Scripts

java.lang.Object
  extended by org.daisy.pipeline.client.Scripts

public class Scripts
extends java.lang.Object

Methods for communicating with the "/scripts" resource in a Pipeline 2 Web Service.

Author:
jostein
See Also:
http://code.google.com/p/daisy-pipeline/wiki/WebServiceAPI#Scripts

Constructor Summary
Scripts()
           
 
Method Summary
static Pipeline2WSResponse get(java.lang.String endpoint, java.lang.String username, java.lang.String secret)
          Get all scripts 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)
          Get a single script HTTP 200 OK: Response body contains XML data 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

Scripts

public Scripts()
Method Detail

get

public static Pipeline2WSResponse get(java.lang.String endpoint,
                                      java.lang.String username,
                                      java.lang.String secret)
                               throws Pipeline2WSException
Get all scripts HTTP 200 OK: Response body contains XML data HTTP 401 Unauthorized: Client was not authorized to perform request.

Throws:
Pipeline2WSException

get

public static Pipeline2WSResponse get(java.lang.String endpoint,
                                      java.lang.String username,
                                      java.lang.String secret,
                                      java.lang.String id)
                               throws Pipeline2WSException
Get a single script HTTP 200 OK: Response body contains XML data HTTP 401 Unauthorized: Client was not authorized to perform request. HTTP 404 Not Found: Resource not found

Throws:
Pipeline2WSException