/** * receives notification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { if (element.getQName().equals(RuntimeTagNames.CONTEXT_ROOT)) { // only set the context root for standalone war; // for embedded war, the context root will be set // using the value in application.xml Application app = descriptor.getApplication(); if ( (app == null) || app.isVirtual() ) { descriptor.setContextRoot(value); } } else { super.setElementValue(element, value); } }
/** * receives notification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { if (element.getQName().equals(RuntimeTagNames.CONTEXT_ROOT)) { // only set the context root for standalone war; // for embedded war, the context root will be set // using the value in application.xml Application app = descriptor.getApplication(); if ( (app == null) || (app!=null && app.isVirtual()) ) { descriptor.setContextRoot(value); } } else if (element.getQName().equals(RuntimeTagNames.KEEP_STATE)) { descriptor.setKeepState(value); } else if (element.getQName().equals(RuntimeTagNames.VERSION_IDENTIFIER)) { } else super.setElementValue(element, value); }
wmInfo = new WebModuleConfig(); wbd.setName(moduleID); wbd.setContextRoot(contextRoot); wmInfo.setDescriptor(wbd); wmInfo.setLocation(docroot);
webBundleDesc.setContextRoot(contextRoot);
contextRoot = "/" + contextRoot; wbd.setContextRoot(contextRoot); wbd.setName(params.name());
wmInfo = new WebModuleConfig(); wbd.setName(Constants.DEFAULT_WEB_MODULE_NAME); wbd.setContextRoot(contextRoot); wmInfo.setLocation(docroot); wmInfo.setDescriptor(wbd);
&& !defaultContextPath.startsWith("/")) { defaultContextPath = "/" + defaultContextPath; wmInfo.getDescriptor().setContextRoot(defaultContextPath);
wmInfo = new WebModuleConfig(); wbd.setModuleID(Constants.DEFAULT_WEB_MODULE_NAME); wbd.setContextRoot(""); wmInfo.setLocation(new File(docroot)); wmInfo.setDescriptor(wbd);