MCPcopy
hub / github.com/SeleniumHQ/selenium / validate

Method validate

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

Source from the content-addressed store, hash-verified

215 }
216
217 public void validate() {
218 Require.nonEmpty("Name", name);
219 Require.nonNull("Value", value);
220 Require.nonNull("Path", path);
221
222 if (name.indexOf(';') != -1) {
223 throw new IllegalArgumentException("Cookie names cannot contain a ';': " + name);
224 }
225
226 if (domain != null && domain.contains(":")) {
227 throw new IllegalArgumentException("Domain should not contain a port: " + domain);
228 }
229 }
230
231 /**
232 * JSON object keys are defined in

Callers

nothing calls this directly

Calls 2

nonEmptyMethod · 0.95
nonNullMethod · 0.95

Tested by

no test coverage detected