/** * Add a new host to the mapper. * * @param name Virtual host name * @param host Host object */ public synchronized void addHost(String name, String[] aliases, Object host) { Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); ContextList contextList = new ContextList(); newHost.name = name; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } for (int i = 0; i < aliases.length; i++) { newHosts = new Host[hosts.length + 1]; newHost = new Host(); newHost.name = aliases[i]; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } } }
/** * Add a new host to the mapper. * * @param name Virtual host name * @param host Host object */ public synchronized void addHost(String name, String[] aliases, Object host) { Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); ContextList contextList = new ContextList(); newHost.name = name; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } for (int i = 0; i < aliases.length; i++) { newHosts = new Host[hosts.length + 1]; newHost = new Host(); newHost.name = aliases[i]; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } } }
/** * Add a new host to the mapper. * * @param name Virtual host name * @param host Host object */ public synchronized void addHost(String name, String[] aliases, Object host) { Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); ContextList contextList = new ContextList(); newHost.name = name; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } for (int i = 0; i < aliases.length; i++) { newHosts = new Host[hosts.length + 1]; newHost = new Host(); newHost.name = aliases[i]; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } } }
/** * Add a new host to the mapper. * * @param name Virtual host name * @param host Host object */ public synchronized void addHost(String name, String[] aliases, Object host) { Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); ContextList contextList = new ContextList(); newHost.name = name; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } for (int i = 0; i < aliases.length; i++) { newHosts = new Host[hosts.length + 1]; newHost = new Host(); newHost.name = aliases[i]; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } } }
/** * Add a new host to the mapper. * * @param name Virtual host name * @param host Host object */ public synchronized void addHost(String name, String[] aliases, Object host) { Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); ContextList contextList = new ContextList(); newHost.name = name; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } for (int i = 0; i < aliases.length; i++) { newHosts = new Host[hosts.length + 1]; newHost = new Host(); newHost.name = aliases[i]; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } } }
/** * Add an alias to an existing host. * @param name The name of the host * @param alias The alias to add */ public synchronized void addHostAlias(String name, String alias) { int pos = find(hosts, name); if (pos < 0) { // Should not be adding an alias for a host that doesn't exist but // just in case... return; } Host realHost = hosts[pos]; Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); newHost.name = alias; newHost.contextList = realHost.contextList; newHost.object = realHost.object; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } }
/** * Add an alias to an existing host. * @param name The name of the host * @param alias The alias to add */ public synchronized void addHostAlias(String name, String alias) { int pos = find(hosts, name); if (pos < 0) { // Should not be adding an alias for a host that doesn't exist but // just in case... return; } Host realHost = hosts[pos]; Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); newHost.name = alias; newHost.contextList = realHost.contextList; newHost.object = realHost; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } }
/** * Add an alias to an existing host. * @param name The name of the host * @param alias The alias to add */ public synchronized void addHostAlias(String name, String alias) { int pos = find(hosts, name); if (pos < 0) { // Should not be adding an alias for a host that doesn't exist but // just in case... return; } Host realHost = hosts[pos]; Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); newHost.name = alias; newHost.contextList = realHost.contextList; newHost.object = realHost; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } }
/** * Add an alias to an existing host. * @param name The name of the host * @param alias The alias to add */ public synchronized void addHostAlias(String name, String alias) { int pos = find(hosts, name); if (pos < 0) { // Should not be adding an alias for a host that doesn't exist but // just in case... return; } Host realHost = hosts[pos]; Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); newHost.name = alias; newHost.contextList = realHost.contextList; newHost.object = realHost; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } }
/** * Add a new host to the mapper. * * @param name Virtual host name * @param host Host object */ public synchronized void addHost(String name, String[] aliases, Object host) { Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); ContextList contextList = new ContextList(); newHost.name = name; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } for (int i = 0; i < aliases.length; i++) { newHosts = new Host[hosts.length + 1]; newHost = new Host(); newHost.name = aliases[i]; newHost.contextList = contextList; newHost.object = host; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } } }
/** * Add an alias to an existing host. * @param name The name of the host * @param alias The alias to add */ public synchronized void addHostAlias(String name, String alias) { int pos = find(hosts, name); if (pos < 0) { // Should not be adding an alias for a host that doesn't exist but // just in case... return; } Host realHost = hosts[pos]; Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); newHost.name = alias; newHost.contextList = realHost.contextList; newHost.object = realHost; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } }
/** * Add an alias to an existing host. * @param name The name of the host * @param alias The alias to add */ public synchronized void addHostAlias(String name, String alias) { int pos = find(hosts, name); if (pos < 0) { // Should not be adding an alias for a host that doesn't exist but // just in case... return; } Host realHost = hosts[pos]; Host[] newHosts = new Host[hosts.length + 1]; Host newHost = new Host(); newHost.name = alias; newHost.contextList = realHost.contextList; newHost.object = realHost.object; if (insertMap(hosts, newHosts, newHost)) { hosts = newHosts; } }