Lines Matching defs:version
6 * under the terms of the GNU General Public License version 2 only, as
14 * version 2 for more details (a copy is included in the LICENSE file that
17 * You should have received a copy of the GNU General Public License version
83 private int version = 1; // Version=1 ... RFC 2965 style
139 * cookie specification. The version can be changed with the
198 // Private version of parse() that will store the original header used to
204 int version = guessCookieVersion(header);
218 if (version == 0) {
639 * Returns the version of the protocol this cookie complies
641 * and version 0 complies with the original
643 * by a browser use and identify the browser's cookie version.
655 return version;
662 * Sets the version of the cookie protocol this cookie complies
679 throw new IllegalArgumentException("cookie version should be 0 or 1");
682 version = v;
1038 assignors.put("version", new CookieAttributeAssignor(){
1041 int version = Integer.parseInt(attrValue);
1042 cookie.setVersion(version);
1044 // Just ignore bogus version, it will default to 0 or 1
1165 * try to guess the cookie version through set-cookie header string
1168 int version = 0;
1173 version = 0;
1174 } else if (header.indexOf("version=") != -1) {
1175 // version is mandatory for rfc 2965/2109 cookie
1176 version = 1;
1179 version = 1;
1182 version = 1;
1185 return version;