getLogger().info(t.getURI()+": "+t.getFirstValue());
}
getLogger().info(T_APP_MATCH.toString());
Term classTerm = entry.getTerm(T_APP_CLASS);
Term proxyTerm = entry.getTerm(T_APP_PROXY);
Context appContext = context.createChildContext();
LinkSet set = new LinkSet();
set.addLinkSet(entry.getLinks());
set.addLinkSet(hostConf.getLinks());
appContext.getAttributes().put(WebComponent.LINKS_ATTR,set);
appContext.getAttributes().put(ScriptManager.ATTR,scriptManager);
appContext.getAttributes().put(ResourceManager.ATTR,resourceManager);
for (URI t : entry.getTerms().keySet()) {
String value = entry.getTerm(t).getFirstValue();
getLogger().info("Setting parameter: "+t+"="+value);
appContext.getParameters().set(t.toString(),value,false);
}
appContext.getParameters().set("username",autoConf.getUsername(),false);
appContext.getParameters().set("password",autoConf.getPassword(),false);
for (Term t : entry.getTerms().values()) {
String key = t.getURI().toString();
if (t.getValues()!=null) {
for (String value : t.getValues()) {
appContext.getParameters().add(key, value);
}
} else {
appContext.getParameters().add(key,"true");
}
}
Application app = null;
if (proxyTerm!=null) {
String value = proxyTerm.getFirstValue();