Specifies the domain within which this cookie should be presented. By default, cookies are only returned to the server that sent them. @param pattern a String containing the domain name within which this cookie is visible @see #getDomain
(String pattern)
| 143 | * @see #getDomain |
| 144 | */ |
| 145 | public void setDomain(String pattern) { |
| 146 | if (pattern == null) { |
| 147 | setAttributeInternal(DOMAIN, null); |
| 148 | } else { |
| 149 | // IE requires the domain to be lower case (unconfirmed) |
| 150 | setAttributeInternal(DOMAIN, pattern.toLowerCase(Locale.ENGLISH)); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | |
| 155 | /** |