Package org.apache.catalina

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


        public void start() throws LifecycleException {
            // Use fast, insecure session ID generation for all tests
            Server server = getServer();
            for (Service service : server.findServices()) {
                Container e = service.getContainer();
                for (Container h : e.findChildren()) {
                    for (Container c : h.findChildren()) {
                        Manager m = ((Context) c).getManager();
                        if (m == null) {
                            m = new StandardManager();
                            ((Context) c).setManager(m);
View Full Code Here


    Container container = service.getContainer();

    if (container == null)
      throw new IllegalStateException("The Tomcat server doesn't have any Engines defined");
    // now get host
    Container[] children = container.findChildren();
    if (ObjectUtils.isEmpty(children))
      throw new IllegalStateException("The Tomcat server doesn't have any Hosts defined");

    // pick the first one and associate the context with it
    return children[0];
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.