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

Method removeAttribute

java/org/apache/catalina/connector/Request.java:1397–1416  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

1395
1396
1397 @Override
1398 public void removeAttribute(String name) {
1399 if (name == null) {
1400 throw new IllegalArgumentException(sm.getString("request.nullAttributeName"));
1401 }
1402 // Remove the specified attribute
1403 // Pass special attributes to the native layer
1404 if (name.startsWith("org.apache.tomcat.")) {
1405 coyoteRequest.getAttributes().remove(name);
1406 }
1407
1408 boolean found = attributes.containsKey(name);
1409 if (found) {
1410 Object value = attributes.get(name);
1411 attributes.remove(name);
1412
1413 // Notify interested application event listeners
1414 notifyAttributeRemoved(name, value);
1415 }
1416 }
1417
1418
1419 @Override

Callers 1

setAttributeMethod · 0.95

Calls 7

getStringMethod · 0.65
removeMethod · 0.65
getAttributesMethod · 0.65
getMethod · 0.65
startsWithMethod · 0.45
containsKeyMethod · 0.45

Tested by

no test coverage detected