public Cookie get(String name) { for(Cookie cookie : store) { if(cookie.getName().equals(name)) { return cookie; } } return null; }
public Cookie remove(String name) { Cookie found = null; for(Cookie c : store) { if(c.getName().equals(name)) { found = c; break; } } if(null != found) { store.remove(found); return found; } return null; }