ConfigContext configContext = event.getConfigContext();
Config config = ServerBeansFactory.getConfigBean(configContext);
if ( config == null) return;
ConfigChange configChange = null;
ArrayList<ConfigChange> configChangeList =
event.getConfigChangeList();
HttpListener httpBean = null;
String xpath = null;
String parentXpath = null;
Object object;
ElementProperty elementProperty = null;
for (int i=0; i < configChangeList.size(); i++){
configChange = configChangeList.get(i);
xpath = configChange.getXPath();
if (xpath != null) {
object = configContext.exactLookup(xpath);
if (object != null) {
if (object instanceof HttpListener) {
if ( ((HttpListener)object).getDefaultVirtualServer()
.equals(com.sun.enterprise.web.VirtualServer.ADMIN_VS)){
if (configChangeList.size() == 1){
throw new AdminEventListenerException("Restart required");
} else {
continue;
}
}
webContainer.updateConnector(
(HttpListener)object,
config.getHttpService(),
configContext);
} else if (object instanceof ElementProperty) {
// Property has been added or updated
parentXpath = configChange.getParentXPath();
if (parentXpath == null) {
parentXpath =
xpath.substring(0, xpath.lastIndexOf("/"));
}
httpBean = (HttpListener)