/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2011, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.wps.v100; import java.net.MalformedURLException; import java.net.URL; import org.geotoolkit.security.ClientSecurity; import org.geotoolkit.wps.AbstractDescribeProcess; /** * * @author Quentin Boileau * @module */ public class DescribeProcess100 extends AbstractDescribeProcess { public DescribeProcess100(final String serverURL, final ClientSecurity security){ super(serverURL, "1.0.0", security); } public DescribeProcess100(final String serverURL, final ClientSecurity security, final boolean doGET){ super(serverURL, "1.0.0", security, doGET); } @Override protected void prepareParameters() { super.prepareParameters(); if (identifiers == null) { throw new IllegalArgumentException("Identifiers are not defined"); } String ids = new String(); for(int i=0 ; i<identifiers.size();i++){ ids += identifiers.get(i); if(i != identifiers.size()-1) ids += ","; } requestParameters.put("IDENTIFIER", ids ); } }