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

Method getServer

java/org/apache/catalina/startup/ContextConfig.java:1209–1226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1207
1208
1209 private Server getServer() {
1210 Container c = context;
1211 while (c != null && !(c instanceof Engine)) {
1212 c = c.getParent();
1213 }
1214
1215 if (c == null) {
1216 return null;
1217 }
1218
1219 Service s = ((Engine) c).getService();
1220
1221 if (s == null) {
1222 return null;
1223 }
1224
1225 return s.getServer();
1226 }
1227
1228 /**
1229 * Validate the usage of security role names in the web application deployment descriptor. If any problems are

Callers 2

destroyMethod · 0.95

Calls 3

getParentMethod · 0.95
getServerMethod · 0.95
getServiceMethod · 0.65

Tested by

no test coverage detected