Sha256: 75e3406d66e57341e7886e4e20bc82e2b1278971d56d42b8660672c20e49c2c8

Contents?: true

Size: 1009 Bytes

Versions: 3

Compression:

Stored size: 1009 Bytes

Contents

package sample.work;

import java.util.LinkedHashMap;
import java.util.Map;

public class JavaHello {
  public Map list(Map input) {
    Map result = new LinkedHashMap();
    if(input!=null && input.containsKey("q")) {
      result.put("greeting", "Hello " + input.get("q"));
    } else {
      result.put("greeting", "Hello World");
    }
    return result;
  }

  public Map read(String id, Map input) {
    Map result = new LinkedHashMap();
    result.put("greeting", "Hello Reader " + id);
    return result;
  }

  public Map create(Map input) {
    Map result = new LinkedHashMap();
    result.put("greeting", "Hello " + input.get("box"));
    return result;
  }

  public Map update(String id, Map input) {
    Map result = new LinkedHashMap();
    result.put("greeting", "Hello " + input.get("box"));
    return result;
  }

  public Map delete(String id) {
    Map result = new LinkedHashMap();
    result.put("status", "ok");
    return result;
  }

  public static void main(String args[]) {
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
service_kiosk-0.5.6 examples/kiosk_mall/mall/kiosks/JavaHello/src/sample/work/JavaHello.java
service_kiosk-0.5.5 examples/kiosk_mall/mall/kiosks/JavaHello/src/sample/work/JavaHello.java
service_kiosk-0.5.4 examples/kiosk_mall/mall/kiosks/JavaHello/src/sample/work/JavaHello.java