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

Method toJson

java/src/org/openqa/selenium/grid/data/Session.java:82–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 private Map<String, Object> toJson() {
83 // Deliberately shaped like the return value for the W3C New Session command's return value.
84 Map<String, Object> toReturn = new TreeMap<>();
85 toReturn.put("capabilities", getCapabilities());
86 toReturn.put("sessionId", getId().toString());
87 toReturn.put("stereotype", getStereotype());
88 toReturn.put("start", getStartTime());
89 toReturn.put("uri", getUri());
90 return unmodifiableMap(toReturn);
91 }
92
93 @Override
94 public boolean equals(Object that) {

Callers

nothing calls this directly

Calls 7

getCapabilitiesMethod · 0.95
getIdMethod · 0.95
getStereotypeMethod · 0.95
getStartTimeMethod · 0.95
getUriMethod · 0.95
putMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected