4 import java.util.function.*;
6 public abstract class JagiWrapper implements Handler, Function<Map<Object, Object>, Map<Object, Object>> {
7 public Map<Object, Object> apply(Map<Object, Object> env) {
8 return(Dispatch.handle(this, new Request(env)));
11 public static JagiWrapper of(Handler handler) {
12 return(new JagiWrapper() {
13 public Map<Object, Object> handle(Request req) {
14 return(handler.handle(req));