this.connectors.put(connector.getName(), connector);
}
public MockServerHost createHost(String name, String basePath, boolean defaultHost) throws WebServerException {
if (this.hosts.containsKey(name))
throw new WebServerException(this, "There is already a host with this name: " + name);
MockServerHost host = new MockServerHost(this, defaultHost, name, basePath);
this.hosts.put(name, host);
if (host.isDefault()) this.defaultHost = host;
return host;