Rename Environment to Dispatch.
[jrw.git] / src / jrw / FormData.java
index 9949f91..fae320b 100644 (file)
@@ -158,12 +158,12 @@ public class FormData extends HashMap<String, String> {
        Map<Object, Object> resp = new HashMap<>();
        if(req.ihead("Content-Type", "").equals("application/x-www-form-urlencoded")) {
            resp.put("jagi.status", "feed-input");
-           resp.put("jagi.next", (Function<Map<Object, Object>, Map<Object, Object>>)env -> Environment.dispatch(next, req));
+           resp.put("jagi.next", (Function<Map<Object, Object>, Map<Object, Object>>)env -> Dispatch.handle(next, req));
            resp.put("jagi.input-sink", new Collector(req));
        } else {
            read(req);
            resp.put("jagi.status", "chain");
-           resp.put("jagi.next", (Function<Map<Object, Object>, Map<Object, Object>>)env -> Environment.dispatch(next, req));
+           resp.put("jagi.next", (Function<Map<Object, Object>, Map<Object, Object>>)env -> Dispatch.handle(next, req));
        }
        return(resp);
     }