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

Method getThreadName

java/org/apache/naming/ContextBindings.java:186–192  ·  view source on GitHub ↗

Retrieves the name of the object bound to the naming context that is also bound to the current thread.

()

Source from the content-addressed store, hash-verified

184 * Retrieves the name of the object bound to the naming context that is also bound to the current thread.
185 */
186 static String getThreadName() throws NamingException {
187 Object obj = threadObjectBindings.get(Thread.currentThread());
188 if (obj == null) {
189 throw new NamingException(sm.getString("contextBindings.noContextBoundToThread"));
190 }
191 return obj.toString();
192 }
193
194
195 /**

Callers 1

getBoundContextMethod · 0.95

Calls 3

getMethod · 0.65
getStringMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected