@Test public void setValidSameSite() { DefaultCookie cookie = new DefaultCookie("key", "value"); cookie.setSameSite(SameSite.Lax); cookie.setDomain(".domain.com"); cookie.setMaxAge(50); assertThat(ServerCookieEncoder.LAX.encode(cookie), containsString("Lax")); }
String encode(String name, String value) { return encode(new DefaultCookie(name, value)); }
ServerCookieEncoder extends CookieEncoder { String encode(String name, String value) { return encode(new DefaultCookie(name, value)); } }
ServerCookieEncoder extends CookieEncoder { String encode(String name, String value) { return encode(new DefaultCookie(name, value)); } private  ServerCookieEncoder(boolean strict); }
ServerCookieEncoder extends CookieEncoder { String encode(String name, String value) { return encode(new DefaultCookie(name, value)); } private  ServerCookieEncoder(boolean strict);  }
ServerCookieEncoder extends CookieEncoder { String encode(String name, String value) { return encode(new DefaultCookie(name, value)); } private  ServerCookieEncoder(boolean strict);   }