V1_01.java [src/java/m/example/simpleservice] Revision: f768e7ce2b40c43d54553d6cbe9a6810fcf36f24  Date: Tue Oct 15 12:16:47 MDT 2019
/*
 * 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.simpleservice;

import csip.ModelDataService;
import javax.ws.rs.Path;
import oms3.annotations.*;

/**
 * Fahrenheit conversion.
 *
 * @author od
 */
@Name("simple")
@Description("Example of an simple service")
@Path("m/attach/1.0")
public class V1_01 extends ModelDataService {

  // 2) convert the temperature
  @Override
  protected void doProcess() throws Exception {
//    System.out.println("File " + getFileInput("test.txt"));
    System.out.println("File " + attachments().getFile("test.txt"));
    System.out.println("File " + formdata().getFile("file1"));
    System.out.println("File " + formdata().getKeys());
  }

}