@Override public Cookie setCookie(String name, String value) { BeanCookie c = new BeanCookie(name); c.setValue(value); c.setPath("/"); return c; }
@Override public Cookie setCookie(Cookie cookie) { String h = BeanCookie.toHeader(cookie); r.addHeader("Set-Cookie", h); return cookie; }