MCPcopy Index your code
hub / github.com/apache/tomcat / setAttribute

Method setAttribute

java/jakarta/servlet/ServletContext.java:398–398  ·  view source on GitHub ↗

Binds an object to a given attribute name in this servlet context. If the name specified is already used for an attribute, this method will replace the attribute with the new to the new attribute. If listeners are configured on the ServletContext the container notifies them accordin

(String name, Object object)

Source from the content-addressed store, hash-verified

396 * @throws NullPointerException If the provided attribute name is <code>null</code>
397 */
398 void setAttribute(String name, Object object);
399
400 /**
401 * Removes the attribute with the given name from the servlet context. After removal, subsequent calls to

Callers 5

contextInitializedMethod · 0.95
testBug54239Method · 0.95
doSnoopTestMethod · 0.95
doGetMethod · 0.95
setClassPathMethod · 0.95

Implementers 5

TesterServletContexttest/org/apache/tomcat/unittest/Tester
JspCServletContextjava/org/apache/jasper/servlet/JspCSer
NoPluggabilityServletContextjava/org/apache/catalina/core/Standard
ApplicationContextjava/org/apache/catalina/core/Applicat
ApplicationContextFacadejava/org/apache/catalina/core/Applicat

Calls

no outgoing calls

Tested by 3

testBug54239Method · 0.76
doSnoopTestMethod · 0.76
doGetMethod · 0.76