public ConfigComponent(HttpServletRequest request) {
this.contextPath = request.getContextPath();
};
public String toString() {
AdaptrexConfig config = AdaptrexServices.getConfig();
StringBuilder output = new StringBuilder("\n");
String contextPathOut = this.contextPath;
String extVersionOut = this.extVersion;
if (extVersionOut == null) extVersionOut = config.get(AdaptrexConfig.EXT_VERSION);
String extBuildOut = this.extBuild;
if (extBuildOut == null) extBuildOut = config.get(AdaptrexConfig.EXT_BUILD, "production");
String webLibPathOut = this.weblibPath;
if (webLibPathOut == null) webLibPathOut = config.get(AdaptrexConfig.WEBLIB, "lib");
String senchaTouchVersionOut = this.senchaTouchVersion;
if (senchaTouchVersionOut == null) senchaTouchVersionOut = config.get(AdaptrexConfig.SENCHATOUCH_VERSION);
String senchaTouchPathOut = this.senchaTouchPath;
if (senchaTouchPathOut == null) senchaTouchPathOut = config.get(AdaptrexConfig.SENCHATOUCH_PATH);
if (!this.touch){
/*
* Ext Desktop
*/
String extPathOut = this.extPath;
if (extPathOut == null) extPathOut = config.get(AdaptrexConfig.EXT_PATH);
if (extPathOut == null && extVersionOut != null) {
extPathOut = "/extjs-" + extVersionOut + "/ext" + (extBuildOut.equals("production") ? "" : "-" + extBuildOut) + ".js";
}
String extThemeOut = null;
String extFolder = null;
if (extPathOut != null) {
extFolder = extPathOut.substring(0, extPathOut.lastIndexOf("/"));
extThemeOut = this.extTheme;
if (extThemeOut == null) extThemeOut = config.get(AdaptrexConfig.EXT_THEME, "all");
if (!extThemeOut.contains("/")) {
extThemeOut = extFolder + "/resources/css/ext-" + extThemeOut + ".css";
}
}