All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.daisy.pipeline.client.Admin Maven / Gradle / Ivy

There is a newer version: 5.0.1
Show newest version
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