V2_0.java [src/java/m/example/stats] Revision: 8619948192a367567dc988cdbc535281973b1f25 Date: Fri Dec 30 12:14:41 MST 2022
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package m.example.stats;
import csip.ModelDataService;
import javax.ws.rs.Path;
import csip.annotations.Description;
import csip.annotations.Name;
import org.apache.commons.io.FileUtils;
/**
*
* @author od
*/
@Name("Stats")
@Description("Statistics")
@Path("m/stats/2.0")
public class V2_0 extends ModelDataService {
@Override
protected void doProcess() throws Exception {
FileUtils.writeStringToFile(workspace().getFile("test.txt"), "content", "utf-8");
results().put(workspace().getFile("test.txt"));
}
}