public void setWebApp(final WebApp webApp) { this.webApp = webApp; if (webApp != null) { webApp.setContextRoot(contextRoot); } }
public void setContextRoot(final String contextRoot) { if (webApp != null) { webApp.setContextRoot(contextRoot); } this.contextRoot = contextRoot; }
public void setWebApp(final WebApp webApp) { this.webApp = webApp; if (webApp != null) { webApp.setContextRoot(contextRoot); } }
public void setContextRoot(final String contextRoot) { if (webApp != null) { webApp.setContextRoot(contextRoot); } this.contextRoot = contextRoot; }
public WebApp contextRoot(final String root) { setContextRoot(root); return this; }
public void setWebApp(WebApp webApp) { this.webApp = webApp; if (webApp != null) webApp.setContextRoot(contextRoot); }
public void setContextRoot(String contextRoot) { if (webApp != null) webApp.setContextRoot(contextRoot); this.contextRoot = contextRoot; }
public WebApp contextRoot(final String root) { setContextRoot(root); return this; }
public WebModule(WebApp webApp, String contextRoot, ClassLoader classLoader, String jarLocation, String moduleId) { this.webApp = webApp; if (contextRoot == null) { contextRoot = jarLocation.substring(jarLocation.lastIndexOf(System.getProperty("file.separator"))); if (contextRoot.endsWith(".unpacked")) { contextRoot = contextRoot.substring(0, contextRoot.length() - ".unpacked".length()); } if (contextRoot.endsWith(".war")) { contextRoot = contextRoot.substring(0, contextRoot.length() - ".war".length()); } } if (contextRoot.startsWith("/")) contextRoot = contextRoot.substring(1); this.contextRoot = contextRoot; this.classLoader = classLoader; this.jarLocation = jarLocation; if (webApp != null) webApp.setContextRoot(contextRoot); if (moduleId == null){ if (webApp != null && webApp.getId() != null){ moduleId = webApp.getId(); } else { File file = new File(jarLocation); moduleId = file.getName(); if (moduleId.endsWith(".unpacked")) { moduleId = moduleId.substring(0, moduleId.length() - ".unpacked".length()); } } } this.moduleId = moduleId; validation = new ValidationContext(WebModule.class, jarLocation); }
public WebModule(final WebApp webApp, String contextRoot, final ClassLoader classLoader, final String jarLocation, final String moduleId) { this.webApp = webApp; final File file = jarLocation == null ? null : new File(jarLocation); this.id = new ID(null, webApp, moduleId, file, null, this); this.validation = new ValidationContext(this); if (contextRoot == null) { contextRoot = null != jarLocation ? jarLocation.substring(jarLocation.lastIndexOf(File.separator)) : "."; if (contextRoot.endsWith(".unpacked")) { contextRoot = contextRoot.substring(0, contextRoot.length() - ".unpacked".length()); } if (contextRoot.endsWith(".war")) { contextRoot = contextRoot.substring(0, contextRoot.length() - ".war".length()); } } while (contextRoot.startsWith("/")) { contextRoot = contextRoot.substring(1); } while (contextRoot.startsWith("\\")) { contextRoot = contextRoot.substring(1); } this.contextRoot = contextRoot; setClassLoader(classLoader); if (webApp != null) { webApp.setContextRoot(contextRoot); } host = SystemInstance.get().getProperty(id.getName() + ".host", null); }
public WebModule(final WebApp webApp, String contextRoot, final ClassLoader classLoader, final String jarLocation, final String moduleId) { this.webApp = webApp; final File file = jarLocation == null ? null : new File(jarLocation); this.id = new ID(null, webApp, moduleId, file, null, this); this.validation = new ValidationContext(this); if (contextRoot == null) { contextRoot = null != jarLocation ? jarLocation.substring(jarLocation.lastIndexOf(File.separator)) : "."; if (contextRoot.endsWith(".unpacked")) { contextRoot = contextRoot.substring(0, contextRoot.length() - ".unpacked".length()); } if (contextRoot.endsWith(".war")) { contextRoot = contextRoot.substring(0, contextRoot.length() - ".war".length()); } } while (contextRoot.startsWith("/")) { contextRoot = contextRoot.substring(1); } while (contextRoot.startsWith("\\")) { contextRoot = contextRoot.substring(1); } this.contextRoot = contextRoot; setClassLoader(classLoader); if (webApp != null) { webApp.setContextRoot(contextRoot); } host = SystemInstance.get().getProperty(id.getName() + ".host", null); }
if (classClasses != null) { final WebApp webapp = new WebApp(); webapp.setContextRoot(classClasses.context()); addWebApp( appModule, testBean, additionalDescriptors,