Sha256: f5868c006669128246378d65eb7da5cb8538c7547daa71ffebde98025e663637
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
package com.countabout.yodlee.kiosk; import java.util.LinkedHashMap; import java.util.Map; public class YodleeUserKiosk { public Map list(Map input) { System.out.println(">>> jh.list: " ); 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(Map input) { Map result = new LinkedHashMap(); String id = (String) input.get("id"); 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(Map input) { Map result = new LinkedHashMap(); String id = (String) input.get("id"); result.put("greeting", "Hello " + input.get("box")); return result; } public Map delete(Map input) { Map result = new LinkedHashMap(); String id = (String) input.get("id"); result.put("status", "ok"); return result; } public static void main(String args[]) { } }
Version data entries
3 entries across 3 versions & 1 rubygems