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

Method parseName

java/org/apache/naming/SelectorContext.java:382–394  ·  view source on GitHub ↗

Strips the URL header. @param name The name @return the parsed name @throws NamingException if there is no "java:" header or if no naming context has been bound to this thread

(String name)

Source from the content-addressed store, hash-verified

380 * @throws NamingException if there is no "java:" header or if no naming context has been bound to this thread
381 */
382 protected String parseName(String name) throws NamingException {
383
384 if ((!initialContext) && (name.startsWith(prefix))) {
385 return name.substring(prefixLength);
386 } else {
387 if (initialContext) {
388 return name;
389 } else {
390 throw new NamingException(sm.getString("selectorContext.noJavaUrl"));
391 }
392 }
393
394 }
395
396
397 /**

Callers 11

lookupMethod · 0.95
bindMethod · 0.95
rebindMethod · 0.95
unbindMethod · 0.95
renameMethod · 0.95
listMethod · 0.95
listBindingsMethod · 0.95
destroySubcontextMethod · 0.95
createSubcontextMethod · 0.95
lookupLinkMethod · 0.95
getNameParserMethod · 0.95

Calls 7

getSuffixMethod · 0.80
getStringMethod · 0.65
getMethod · 0.65
equalsMethod · 0.65
addMethod · 0.65
startsWithMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected