2016-09-14 14:27:54 +02:00
|
|
|
package org.gcube.portlets.user.dataminermanager.server.dmservice.wps;
|
2016-04-06 18:28:32 +02:00
|
|
|
|
|
|
|
import org.n52.wps.client.AbstractClientGETRequest;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author Giancarlo Panichi
|
2017-05-12 11:58:15 +02:00
|
|
|
*
|
2016-04-06 18:28:32 +02:00
|
|
|
*
|
|
|
|
*/
|
2016-09-14 14:27:54 +02:00
|
|
|
public class DClientDescribeProcessRequest extends AbstractClientGETRequest {
|
2016-04-06 18:28:32 +02:00
|
|
|
|
|
|
|
private static String IDENTIFIER_REQ_PARAM_NAME = "identifier";
|
|
|
|
private static String REQUEST_REQ_PARAM_VALUE = "DescribeProcess";
|
|
|
|
|
2016-09-14 14:27:54 +02:00
|
|
|
public DClientDescribeProcessRequest() {
|
2016-04-06 18:28:32 +02:00
|
|
|
super();
|
|
|
|
setRequestParamValue(REQUEST_REQ_PARAM_VALUE);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setIdentifier(String[] ids) {
|
|
|
|
String idsString = "";
|
|
|
|
for(int i = 0; i < ids.length; i++) {
|
|
|
|
idsString = idsString + ids[i];
|
|
|
|
if(i != ids.length -1) {
|
|
|
|
idsString = idsString + ",";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
requestParams.put(IDENTIFIER_REQ_PARAM_NAME, idsString);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean valid() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|