()
| 266 | } |
| 267 | |
| 268 | @Override |
| 269 | public String toString() { |
| 270 | SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z"); |
| 271 | sdf.setTimeZone(TimeZone.getTimeZone("GMT")); |
| 272 | return name |
| 273 | + "=" |
| 274 | + value |
| 275 | + (expiry == null ? "" : "; expires=" + sdf.format(expiry)) |
| 276 | + ("".equals(path) ? "" : "; path=" + path) |
| 277 | + (domain == null ? "" : "; domain=" + domain) |
| 278 | + (isSecure ? ";secure;" : "") |
| 279 | + (sameSite == null ? "" : "; sameSite=" + sameSite); |
| 280 | } |
| 281 | |
| 282 | /** Two cookies are equal if the name and value match */ |
| 283 | @Override |
nothing calls this directly
no test coverage detected