Additional Context.get[Name|Path]() clean up
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1031706 13f79535-47bb-0310-9956-
ffa450edef68
if (container instanceof Context) {
name.append(",context=");
- Context context = (Context) container;
-
- String contextName = ((Context)container).getName();
+ String contextName = container.getName();
if (!contextName.startsWith("/")) {
- contextName = "/" + contextName;
+ name.append('/');
}
name.append(contextName);
+ Context context = (Context) container;
name.append(",host=");
name.append(context.getParent().getName());
} else {