List of usage examples for java.net CookiePolicy interface-usage
From source file WebClient.java
class MyCookiePolicy implements CookiePolicy { public boolean shouldAccept(URI uri, HttpCookie cookie) { // String host = uri.getHost(); // return host.equals("localhost"); return true; }