/** * Constructor of the <code>Cookie</code> that uses a default * version of 1, which is used by RFC 2109. This allows the * path attribute to be specified for on construction. Other * attributes can be set using the set methods provided. * <p> * The name must conform to RFC 2109, which means that it can * contain only ASCII alphanumeric characters and cannot have * commas, white space, or semicolon characters. * * @param name this is the name of this cookie instance * @param value this is the value of this cookie instance * @param path the path attribute of this cookie instance * @param created this determines if the cookie is new */ public Cookie(String name, String value, String path, boolean created) { this.date = new CookieDate(); this.created = created; this.value = value; this.name = name; this.path = path; this.version = 1; this.expiry = -1; }
/** * Constructor of the <code>Cookie</code> that uses a default * version of 1, which is used by RFC 2109. This allows the * path attribute to be specified for on construction. Other * attributes can be set using the set methods provided. * <p> * The name must conform to RFC 2109, which means that it can * contain only ASCII alphanumeric characters and cannot have * commas, white space, or semicolon characters. * * @param name this is the name of this cookie instance * @param value this is the value of this cookie instance * @param path the path attribute of this cookie instance * @param created this determines if the cookie is new */ public Cookie(String name, String value, String path, boolean created) { this.date = new CookieDate(); this.created = created; this.value = value; this.name = name; this.path = path; this.version = 1; this.expiry = -1; }
/** * Constructor of the <code>Cookie</code> that uses a default * version of 1, which is used by RFC 2109. This allows the * path attribute to be specified for on construction. Other * attributes can be set using the set methods provided. * <p> * The name must conform to RFC 2109, which means that it can * contain only ASCII alphanumeric characters and cannot have * commas, white space, or semicolon characters. * * @param name this is the name of this cookie instance * @param value this is the value of this cookie instance * @param path the path attribute of this cookie instance * @param created this determines if the cookie is new */ public Cookie(String name, String value, String path, boolean created) { this.date = new CookieDate(); this.created = created; this.value = value; this.name = name; this.path = path; this.version = 1; this.expiry = -1; }