String accessLoggingFlag = (String)handlerCtx.getInputValue("accessLoggingFlag");
if (!accessLoggingFlag.equals("off")){
putOptionalValue(accessLoggingFlag, convertedMap, "accessLoggingEnabled");
}
VirtualServerConfig server = config.getHTTPServiceConfig().createVirtualServerConfig(
(String)handlerCtx.getInputValue("Name"), ((String)handlerCtx.getInputValue("Hosts")), convertedMap);
server.setHosts(((String)handlerCtx.getInputValue("Hosts")));
server.setHTTPListeners(((String)handlerCtx.getInputValue("Http")));
server.setDefaultWebModule(((String)handlerCtx.getInputValue("Web")));
server.setLogFile(((String)handlerCtx.getInputValue("LogFile")));
//server.setState(((String)handlerCtx.getInputValue("StateOption")));
String tmp = (String)handlerCtx.getInputValue("StateOption");
server.setState(tmp);
return;
}
Map<String,VirtualServerConfig>vservers = config.getHTTPServiceConfig().getVirtualServerConfigMap();
VirtualServerConfig vs = (VirtualServerConfig)vservers.get((String)handlerCtx.getInputValue("Name"));
AMXUtil.updateProperties(vs, newProps, vsSkipPropsList);
vs.setHosts(((String)handlerCtx.getInputValue("Hosts")));
vs.setState(((String)handlerCtx.getInputValue("StateOption")));
vs.setHTTPListeners(((String)handlerCtx.getInputValue("Http")));
vs.setDefaultWebModule(((String)handlerCtx.getInputValue("Web")));
vs.setLogFile(((String)handlerCtx.getInputValue("LogFile")));
AMXUtil.changeProperty(vs, "accesslog", (String)handlerCtx.getInputValue("accesslog"));
AMXUtil.changeProperty(vs, "accessLogBufferSize", (String)handlerCtx.getInputValue("accessLogBufferSize"));
AMXUtil.changeProperty(vs, "accessLogWriteInterval", (String)handlerCtx.getInputValue("accessLogWriteInterval"));
AMXUtil.changeProperty(vs, "docroot", (String)handlerCtx.getInputValue("docroot"));