(String name)
| 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 |
no test coverage detected