/** * Find context internal. * * @param name the context name * @return the context */ protected Context findContextInternal(String name) { return (Context) host.findChild(name); }
/** * Check if a webapp is already deployed in this host. * * @param contextName of the context which will be checked * @return <code>true</code> if the specified deployment exists */ protected boolean deploymentExists(String contextName) { return (deployed.containsKey(contextName) || (host.findChild(contextName) != null)); }
/** * Check if a webapp is already deployed in this host. * * @param contextName of the context which will be checked */ protected boolean deploymentExists(String contextName) { return (deployed.containsKey(contextName) || (host.findChild(contextName) != null)); }
/** * Check if a webapp is already deployed in this host. * * @param contextName of the context which will be checked */ protected boolean deploymentExists(String contextName) { return (deployed.containsKey(contextName) || (host.findChild(contextName) != null)); }
/** * Check if a webapp is already deployed in this host. * * @param contextName of the context which will be checked */ protected boolean deploymentExists(String contextName) { return (deployed.containsKey(contextName) || (host.findChild(contextName) != null)); }
/** * Check if a webapp is already deployed in this host. * * @param contextName of the context which will be checked */ protected boolean deploymentExists(String contextName) { return (deployed.containsKey(contextName) || (host.findChild(contextName) != null)); }
/** * Check if a webapp is already deployed in this host. * * @param contextPath of the context which will be checked */ protected boolean deploymentExists(String contextPath) { return (deployed.containsKey(contextPath) || (host.findChild(contextPath) != null)); }
/** * Check if a webapp is already deployed in this host. * * @param contextName of the context which will be checked */ protected boolean deploymentExists(String contextName) { return (deployed.containsKey(contextName) || (host.findChild(contextName) != null)); }
/** * Check if a webapp is already deployed in this host. * * @param contextName of the context which will be checked * @return <code>true</code> if the specified deployment exists */ protected boolean deploymentExists(String contextName) { return (deployed.containsKey(contextName) || (host.findChild(contextName) != null)); }
/** * {@inhericDoc} * @see org.jboss.modcluster.Host#findContext(java.lang.String) */ public Context findContext(String path) { org.apache.catalina.Context context = (org.apache.catalina.Context) this.host.findChild(path); return (context != null) ? new CatalinaContext(context, this) : null; }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. * @param contextName The context name */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. * @param contextName The context name */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controlers. */ public void unmanageApp(String contextPath) { if(isServiced(contextPath)) { deployed.remove(contextPath); host.removeChild(host.findChild(contextPath)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Provide default configuration for a context. This is the programmatic * equivalent of the default web.xml. * * TODO: in normal Tomcat, if default-web.xml is not found, use this * method * * @param contextPath The context to set the defaults for */ public void initWebappDefaults(String contextPath) { Container ctx = getHost().findChild(contextPath); initWebappDefaults((Context) ctx); }
private void undeployModules() { Host host = tomcat.getHost(); while (!deployed.isEmpty()) { String applicationName = deployed.pop(); Container child = host.findChild("/" + applicationName); tomcat.getHost().removeChild(child); } }
@Override public Context findContext(String path) { org.apache.catalina.Context context = (org.apache.catalina.Context) this.host.findChild(path); return (context != null) ? TomcatHost.this.registry.getContextFactory().createContext(context, this) : null; }