String serverName = (String) handlerCtx.getInputValue("serverName");
Iterator<WebModuleConfig> iter = AMXUtil.getDomainConfig().getWebModuleConfigMap().values().iterator();
List result = new ArrayList();
while(iter.hasNext()){
WebModuleConfig appConfig = iter.next();
if (ObjectTypeValues.USER.equals(appConfig.getObjectType())){
HashMap oneRow = new HashMap();
String protocol = "http" ;
String enable = TargetUtil.getEnabledStatus(appConfig, true);
oneRow.put("name", appConfig.getName());
oneRow.put("enabled", enable);
String contextRoot = appConfig.getContextRoot();
oneRow.put("contextRoot", contextRoot);
String port = getPortForApplication(appConfig.getName());
if (port.startsWith("-") ){
protocol="https";
port = port.substring(1);
}
oneRow.put("port", port);