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

Method createHost

test/org/apache/catalina/mapper/TestMapper.java:42–50  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

40 private HashMap<String,Host> hostMap = new HashMap<>();
41
42 private synchronized Host createHost(String name) {
43 Host host = hostMap.get(name);
44 if (host == null) {
45 host = new StandardHost();
46 host.setName(name);
47 hostMap.put(name, host);
48 }
49 return host;
50 }
51
52 private Context createContext(String name) {
53 Context context = new StandardContext();

Callers 4

setUpMethod · 0.95
testAddHostMethod · 0.95
testCompareIgnoreCaseMethod · 0.95

Calls 3

getMethod · 0.65
setNameMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected