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