jdk/src/share/classes/java/net/HttpCookie.java
changeset 1932 d3506bce7d27
parent 1234 e3dc213d4879
child 1945 95b9d549a3b4
equal deleted inserted replaced
1826:39d505a353e8 1932:d3506bce7d27
  1056 
  1056 
  1057         CookieAttributeAssignor assignor = assignors.get(attrName.toLowerCase());
  1057         CookieAttributeAssignor assignor = assignors.get(attrName.toLowerCase());
  1058         if (assignor != null) {
  1058         if (assignor != null) {
  1059             assignor.assign(cookie, attrName, attrValue);
  1059             assignor.assign(cookie, attrName, attrValue);
  1060         } else {
  1060         } else {
  1061             // must be an error
  1061             // Ignore the attribute as per RFC 2965
  1062             throw new IllegalArgumentException("Illegal cookie attribute");
       
  1063         }
  1062         }
  1064     }
  1063     }
  1065 
  1064 
  1066     /*
  1065     /*
  1067      * Constructs a string representation of this cookie. The string format is
  1066      * Constructs a string representation of this cookie. The string format is