public class VHostList
extends Object
VHostList: list of VHost items. Result of parsing VHosts.xml at server startup or VHosts.xml reload. This interface can keep track of reloads and carefully mark items for deletion.
| Constructor | Description |
|---|---|
VHostList() |
Create empty vHostList
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addVHostItemListener(IVHostItemNotify vHostItemListener) |
Add vHostItem listener.
|
java.util.List<VHostItem> |
getVHostItems() |
Get a list of vHostItems.
|
java.util.Map<String,VHostItem> |
getVHostMap() |
Get the Map of vHostItem defintions.
|
java.util.List<String> |
getVHostNames() |
Get a list of vHost names.
|
void |
loadConfig() |
|
void |
notifyVHostItemCreate(VHostItem vhostItem) |
Notify vHostItem listener of item create.
|
void |
notifyVHostItemDestroy(VHostItem vhostItem) |
Notify vHostItem listener of item destroy.
|
void |
notifyVHostItemUpdate(VHostItem vhostItem) |
Notify vHostItem listener of item update.
|
void |
reloadConfig() |
Reload VHosts.xml file.
|
void |
removeVHostItemListener(IVHostItemNotify vHostItemListener) |
Remove vHostItem listener.
|
public void addVHostItemListener(IVHostItemNotify vHostItemListener)
vHostItemListener - vHostItem listenerpublic java.util.List<VHostItem> getVHostItems()
public java.util.Map<String,VHostItem> getVHostMap()
public java.util.List<String> getVHostNames()
public void loadConfig()
public void notifyVHostItemCreate(VHostItem vhostItem)
vhostItem - vHostItempublic void notifyVHostItemDestroy(VHostItem vhostItem)
vhostItem - vHostItempublic void notifyVHostItemUpdate(VHostItem vhostItem)
vhostItem - vHostItempublic void reloadConfig()
public void removeVHostItemListener(IVHostItemNotify vHostItemListener)
vHostItemListener - vHostItem listener