MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / toString

Method toString

java/src/org/openqa/selenium/Cookie.java:268–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getTimeZoneMethod · 0.45
formatMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected