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

Method toMap

java/src/org/openqa/selenium/bidi/network/Cookie.java:190–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188 }
189
190 public Map<String, Object> toMap() {
191 Map<String, Object> map = new HashMap<>();
192 map.put("name", getName());
193 map.put("value", getValue().toMap());
194 if (domain != null) map.put("domain", domain);
195 if (path != null) map.put("path", path);
196 if (size != null) map.put("size", size);
197 map.put("secure", isSecure());
198 map.put("httpOnly", isHttpOnly());
199 if (sameSite != null) map.put("sameSite", sameSite.toString());
200 expiry.ifPresent(expiry -> map.put("expiry", expiry));
201 return unmodifiableMap(map);
202 }
203}

Callers

nothing calls this directly

Calls 7

getNameMethod · 0.95
getValueMethod · 0.95
isSecureMethod · 0.95
isHttpOnlyMethod · 0.95
putMethod · 0.65
toMapMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected