
org.daisy.pipeline.client.Admin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clientlib-java Show documentation
Show all versions of clientlib-java Show documentation
A Java library for communicating with the DAISY Pipeline 2.
package org.daisy.pipeline.client;
/**
* Methods for communicating with the "/scripts" resource in a Pipeline 2 Web Service.
*
* @see http://code.google.com/p/daisy-pipeline/wiki/WebServiceAPI#Scripts
*
* @author jostein
*/
public class Admin {
/**
* Stop the web service
*
* HTTP 204 No Content: Successfully processed the request, no content being returned
* HTTP 401 Unauthorized: Client was not authorized to perform request.
* HTTP 403 Forbidden: The service could not be halted. This error would be caused by an invalid key.
* @throws Pipeline2WSException
*/
public static Pipeline2WSResponse halt(String endpoint, String username, String secret, String key) throws Pipeline2WSException {
return Pipeline2WS.get(endpoint, "/admin/halt/"+key, username, secret, null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy