@Override public Cookie getCookie(final String name) { for (final javax.servlet.http.Cookie c : req.getCookies()) { if (c.getName().equals(name)) return new BXServletCookie(c); } return null; }
// getBrowserInfiniteCookie public static String getBrowserInfiniteCookie(HttpServletRequest request) { Cookie[] cookieJar = request.getCookies(); if (cookieJar != null) { for (Cookie cookie : cookieJar) { if (cookie.getName().equals("infinitecookie")) { return cookie.getValue() + ";"; } } } return null; } // TESTED
@Override public List<Cookie> getCookies() { final List<Cookie> list = new ArrayList<>(); for (final javax.servlet.http.Cookie c : req.getCookies()) list.add(new BXServletCookie(c)); return list; }