code: private String toRFC2965HeaderString() {
          StringBuilder sb = new StringBuilder();
  
          sb.append(getName()).append("=\"").append(getValue()).append('"');
          if (getPath() != null)
              sb.append(";$Path=\"").append(getPath()).append('"');
          if (getDomain() != null)
              sb.append(";$Domain=\"").append(getDomain()).append('"');
          if (getPortlist() != null)
              sb.append(";$Port=\"").append(getPortlist()).append('"');
  
          return sb.toString();
      }
docs: /*
  Constructs a string representation of this cookie. The string format is
  as RFC 2965/2109, but without leading "Cookie:" token.