Package org.apache.catalina

Examples of org.apache.catalina.Container.addChild()


            for (String listener : applicationListeners) {
                anotherCtxObj.addApplicationListener(listener);
            }
        }

        host.addChild(anotherCtxObj);
    }

    public void removeContext(TomcatContext ctx) {
        Context context = ctx.getContext();
View Full Code Here


        Container host = engine.findChild(virtualServer);
        if (host == null) {
            throw new IllegalArgumentException("Invalid virtual host '" + virtualServer + "'.  Do you have a matchiing Host entry in the plan?");
        }

        host.addChild(webServiceContext);
        webServices.put(contextPath, webServiceContext);
    }

    public void removeWebService(String contextPath) {
        TomcatEJBWebServiceContext context = (TomcatEJBWebServiceContext) webServices.get(contextPath);
View Full Code Here

            WarpHost whost=new WarpHost();
            whost.setName(hostName);
            whost.setParent(container);
            whost.setAppBase(connection.getConnector().getAppBase());
            whost.setDebug(connection.getConnector().getDebug());
            container.addChild(whost);
            host=whost;
            if (Constants.DEBUG)
                logger.debug("Created new host "+host.getName());
        } else if (Constants.DEBUG) {
            logger.debug("Reusing instance of Host \""+host.getName()+"\"");
View Full Code Here

        // add add servlet to context
        context.addChild(wrapper);
        context.addServletMapping("/*", "webservice");

        // add context to host
        host.addChild(context);
        webserviceContexts.put(path, context);

        // register wsdl locations for service-ref resolution
        List<String> addresses = new ArrayList<String>();
        for (Connector connector : connectors) {
View Full Code Here

                anotherCtxObj.addApplicationListener(listener);
            }
        }
       
        try {
            host.addChild(anotherCtxObj);
        } catch (IllegalArgumentException ex) {
            log.error("Unable to add the child container: " + anotherCtxObj.getName()
                    + " .  Please check if your project's context-root is unique.", ex);
        }
    }
View Full Code Here

        Container host = engine.findChild(virtualServer);
        if (host == null) {
            throw new IllegalArgumentException("Invalid virtual host '" + virtualServer + "'.  Do you have a matchiing Host entry in the plan?");
        }

        host.addChild(webServiceContext);
        webServices.put(contextPath, webServiceContext);
    }

    public void removeWebService(String contextPath) {
        TomcatEJBWebServiceContext context = (TomcatEJBWebServiceContext) webServices.get(contextPath);
View Full Code Here

        // build contexts
        // - old way (/*)
        if (WEBSERVICE_OLDCONTEXT_ACTIVE) {
            Context context = createNewContext(path, classLoader, authMethod, transportGuarantee, realmName);
            host.addChild(context);
            addServlet(host, context, "/*", httpListener, path, addresses);
        }

        // - new way (/<webappcontext>/webservices/<name>) if webcontext is specified
        if (webContext != null) {
View Full Code Here

            } else {
                anotherCtxObj.setRealm(realm);
            }
        }

        host.addChild(anotherCtxObj);
    }

    public void removeContext(TomcatContext ctx) {
        Context context = ctx.getContext();
View Full Code Here

        Container host = engine.findChild(virtualServer);
        if (host == null) {
            throw new IllegalArgumentException("Invalid virtual host '" + virtualServer + "'.  Do you have a matchiing Host entry in the plan?");
        }

        host.addChild(webServiceContext);
        webServices.put(contextPath, webServiceContext);
    }

    public void removeWebService(String contextPath) {
        TomcatEJBWebServiceContext context = (TomcatEJBWebServiceContext) webServices.get(contextPath);
View Full Code Here

                anotherCtxObj.addApplicationListener(listener);
            }
        }
       
        try {
            host.addChild(anotherCtxObj);
        } catch (IllegalArgumentException ex) {
            log.error("Unable to add the child container: " + anotherCtxObj.getName()
                    + " .  Please check if your project's context-root is unique.", ex);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.