MCPcopy Create free account
hub / github.com/apache/tomcat / setAttributeInternal

Method setAttributeInternal

java/jakarta/servlet/http/Cookie.java:419–434  ·  view source on GitHub ↗
(String name, String value)

Source from the content-addressed store, hash-verified

417
418
419 private void setAttributeInternal(String name, String value) {
420 if (attributes == null) {
421 if (value == null) {
422 return;
423 } else {
424 // Case-insensitive keys but retain case used
425 attributes = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
426 }
427 }
428
429 if (value == null) {
430 attributes.remove(name);
431 } else {
432 attributes.put(name, value);
433 }
434 }
435
436
437 /**

Callers 6

setDomainMethod · 0.95
setMaxAgeMethod · 0.95
setPathMethod · 0.95
setSecureMethod · 0.95
setHttpOnlyMethod · 0.95
setAttributeMethod · 0.95

Calls 2

removeMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected