Hi;
We would like to show 3 jaggery apps URLs in server console. But looks like
carbon.ui component allows to read only two contexts?[1] It reads
*default-context* and *default-additional-context *only as contextIds. If
we want to show more URLs, looks like we can not?
Am i trying something wrong?
[1] (org.wso2.carbon.ui.internal.CarbonUIServiceComponent)
if (adminConsoleURL != null) {
log.info("Mgt Console URL : " + adminConsoleURL);
}
if (defaultContext != null &&
!"".equals(defaultContext.getContextName()) &&
!"null".equals(defaultContext.getContextName())) {
// Adding the other context url
int index = adminConsoleURL.lastIndexOf("carbon");
String defContextUrl = adminConsoleURL.substring(0, index)
+ defaultContext.getContextName();
if (defaultContext.getDescription() != null) {
if (defaultContext.getProtocol() != null &&
"http".equals(defaultContext.getProtocol())) {
log.info(defaultContext.getDescription() + " : " +
CarbonUIUtil.https2httpURL(defContextUrl));
} else {
log.info(defaultContext.getDescription() + " : " +
defContextUrl);
}
} else {
log.info("Default Context : " + defContextUrl);
}
} if (defaultAdditionalContext != null &&
!"".equals(defaultAdditionalContext.getContextName()) &&
!"null".equals(defaultAdditionalContext.getContextName())) {
// Adding the other context url
int index = adminConsoleURL.lastIndexOf("carbon");
String defContextUrl = adminConsoleURL.substring(0, index)
+ defaultAdditionalContext.getContextName();
if (defaultAdditionalContext.getDescription() != null) {
if (defaultAdditionalContext.getProtocol() != null &&
"http".equals(defaultAdditionalContext.getProtocol())) {
log.info(defaultAdditionalContext.getDescription()
+ " : " + CarbonUIUtil.https2httpURL(defContextUrl));
} else {
log.info(defaultAdditionalContext.getDescription()
+ " : " + defContextUrl);
}
} else {
log.info("Default Context : " + defContextUrl);
}
}
Thanks
-Ratha
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev