code: public void add(final URI uri, final HttpCookie cookie) {
          if(cookie.getMaxAge() == 0) {
              return;
          }
  
          if(cookie.getDomain() != null) {
              add(new DomainKey(cookie), cookie);
          }
          
          if(uri != null) {
              add(new UriKey(uri, cookie), cookie);
          }
      }
docs: public cookie store api