jdk/src/share/classes/java/net/HttpCookie.java
changeset 12439 07ab7fcb2f08
parent 11284 2750cfd2352c
child 13259 f8aa59b3988e
equal deleted inserted replaced
12438:c1183d4a80d4 12439:07ab7fcb2f08
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   614      *   would be rejected, because H is y.x and contains a dot.</li>
   614      *   would be rejected, because H is y.x and contains a dot.</li>
   615      *   <li>A Set-Cookie2 from request-host x.foo.com for Domain=.foo.com
   615      *   <li>A Set-Cookie2 from request-host x.foo.com for Domain=.foo.com
   616      *   would be accepted.</li>
   616      *   would be accepted.</li>
   617      *   <li>A Set-Cookie2 with Domain=.com or Domain=.com., will always be
   617      *   <li>A Set-Cookie2 with Domain=.com or Domain=.com., will always be
   618      *   rejected, because there is no embedded dot.</li>
   618      *   rejected, because there is no embedded dot.</li>
   619      *   <li>A Set-Cookie2 with Domain=ajax.com will be accepted, and the
       
   620      *   value for Domain will be taken to be .ajax.com, because a dot
       
   621      *   gets prepended to the value.</li>
       
   622      *   <li>A Set-Cookie2 from request-host example for Domain=.local will
   619      *   <li>A Set-Cookie2 from request-host example for Domain=.local will
   623      *   be accepted, because the effective host name for the request-
   620      *   be accepted, because the effective host name for the request-
   624      *   host is example.local, and example.local domain-matches .local.</li>
   621      *   host is example.local, and example.local domain-matches .local.</li>
   625      * </ul></blockquote>
   622      * </ul></blockquote>
   626      *
   623      *