Package org.apache.catalina

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


            if (service.getContainer() instanceof Engine) {
                Engine engine = (Engine) service.getContainer();
                for (Container engineChild : engine.findChildren()) {
                    if (engineChild instanceof Host) {
                        Host host = (Host) engineChild;
                        for (Container hostChild : host.findChildren()) {
                            if (hostChild instanceof StandardContext) {
                                StandardContext standardContext = (StandardContext) hostChild;
                                int state = TomcatHelper.getContextState(standardContext);
                                if (state == 0) {
                                    // context only initialized
View Full Code Here


    sb.append("<br>Contexts known to this server are: ");

    Host host = (Host) parentContext.getParent();

    sb.append("<ul>");
    Container[] contexts = host.findChildren();
    for (int i = 0; i < contexts.length; i++) {
      Context context = (Context) contexts[i];
      if (context != null) {
        if (!context.getPath().equals("") && context.getState().isAvailable()) {
View Full Code Here

    sb.append("<br>Contexts known to this server are: ");

    Host host = (Host) parentContext.getParent();

    sb.append("<ul>");
    Container[] contexts = host.findChildren();
    for (Container context2 : contexts) {
      Context context = (Context) context2;
      if (context != null) {
        if (!context.getPath().equals("") && context.getState().isAvailable()) {
View Full Code Here

            if (service.getContainer() instanceof Engine) {
                Engine engine = (Engine) service.getContainer();
                for (Container engineChild : engine.findChildren()) {
                    if (engineChild instanceof Host) {
                        Host host = (Host) engineChild;
                        for (Container hostChild : host.findChildren()) {
                            if (hostChild instanceof StandardContext) {
                                StandardContext standardContext = (StandardContext) hostChild;
                                int state = TomcatHelper.getContextState(standardContext);
                                if (state == 0) {
                                    // context only initialized
View Full Code Here

    sb.append("<br>Contexts known to this server are: ");

    Host host = (Host) parentContext.getParent();

    sb.append("<ul>");
    Container[] contexts = host.findChildren();
    for (Container context2 : contexts) {
      Context context = (Context) context2;
      if (context != null) {
        if (!context.getPath().equals("") && context.getState().isAvailable()) {
View Full Code Here

            if (service.getContainer() instanceof Engine) {
                Engine engine = (Engine) service.getContainer();
                for (Container engineChild : engine.findChildren()) {
                    if (engineChild instanceof Host) {
                        Host host = (Host) engineChild;
                        for (Container hostChild : host.findChildren()) {
                            if (hostChild instanceof StandardContext) {
                                StandardContext standardContext = (StandardContext) hostChild;
                                int state = TomcatHelper.getContextState(standardContext);
                                if (state == 0) {
                                    // context only initialized
View Full Code Here

            if (service.getContainer() instanceof Engine) {
                Engine engine = (Engine) service.getContainer();
                for (Container engineChild : engine.findChildren()) {
                    if (engineChild instanceof Host) {
                        Host host = (Host) engineChild;
                        for (Container hostChild : host.findChildren()) {
                            if (hostChild instanceof StandardContext) {
                                StandardContext standardContext = (StandardContext) hostChild;
                                int state = TomcatHelper.getContextState(standardContext);
                                if (state == 0) {
                                    // context only initialized
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.