V1_5.java [src/java/d/soils] Revision: Date:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package d.soils;
import csip.annotations.*;
import static csip.annotations.State.RELEASED;
import database.DBResources;
import javax.ws.rs.*;
import static util.ErosionConst.SOILS;
/**
* REST Web Service. Front end callable.
*
* @author wlloyd, od
*
* Changed the results array to wrap the soils in a name value set. bjakobitz
*/
@Name("Soils")
@Description("IET soils")
@VersionInfo("1.3")
@State(RELEASED)
@Path("d/soils/1.3")
@Resource(from = DBResources.class)
public class V1_5 extends V1_21 {
@Override
protected void postProcess() throws Exception {
for (int i = 0; i < outputObj.length(); i++) {
results().put(SOILS, outputObj.get(i));
}
}
}