Example usage for java.net CookiePolicy interface-usage

List of usage examples for java.net CookiePolicy interface-usage

Introduction

In this page you can find the example usage for java.net CookiePolicy interface-usage.

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;
        }