List of usage examples for java.net HttpCookie setHttpOnly
public void setHttpOnly(boolean httpOnly)
From source file:keywhiz.cli.JsonCookie.java
public static HttpCookie toHttpCookie(JsonCookie cookieContents) { HttpCookie cookie = new HttpCookie(cookieContents.name(), cookieContents.value()); cookie.setDomain(cookieContents.domain()); cookie.setPath(cookieContents.path()); cookie.setSecure(cookieContents.isSecure()); cookie.setHttpOnly(cookieContents.isHttpOnly()); cookie.setVersion(1); // Always set version to 1 or important fields will be dropped return cookie; }