Package org.apache.catalina.util.xml

Examples of org.apache.catalina.util.xml.XmlMapper.addChild()


                       mapper.methodParam(1));

        mapper.addRule("web-app/filter-mapping",
                  mapper.objectCreate("org.apache.catalina.deploy.FilterMap"));
        mapper.addRule("web-app/filter-mapping",
                       mapper.addChild("addFilterMap",
                                      "org.apache.catalina.deploy.FilterMap"));
        mapper.addRule("web-app/filter-mapping/filter-name",
                       mapper.methodSetter("setFilterName", 0));
        mapper.addRule("web-app/filter-mapping/servlet-name",
                       mapper.methodSetter("setServletName", 0));
View Full Code Here


                       mapper.methodSetter("addApplicationListener", 0));

        mapper.addRule("web-app/login-config",
                mapper.objectCreate("org.apache.catalina.deploy.LoginConfig"));
        mapper.addRule("web-app/login-config",
                       mapper.addChild("setLoginConfig",
                                    "org.apache.catalina.deploy.LoginConfig"));
        mapper.addRule("web-app/login-config/auth-method",
                       mapper.methodSetter("setAuthMethod", 0));
        mapper.addRule("web-app/login-config/realm-name",
                       mapper.methodSetter("setRealmName", 0));
View Full Code Here

                       mapper.methodParam(1));

        mapper.addRule("web-app/resource-ref",
            mapper.objectCreate("org.apache.catalina.deploy.ContextResource"));
        mapper.addRule("web-app/resource-ref",
                mapper.addChild("addResource",
                                "org.apache.catalina.deploy.ContextResource"));
        mapper.addRule("web-app/resource-ref/description",
                       mapper.methodSetter("setDescription", 0));
        mapper.addRule("web-app/resource-ref/res-auth",
                       mapper.methodSetter("setAuth", 0));
View Full Code Here

                       mapper.methodSetter("setType", 0));

        mapper.addRule("web-app/security-constraint",
                       mapper.objectCreate("org.apache.catalina.deploy.SecurityConstraint"));
        mapper.addRule("web-app/security-constraint",
                       mapper.addChild("addConstraint",
                                       "org.apache.catalina.deploy.SecurityConstraint"));
        mapper.addRule("web-app/security-constraint/auth-constraint",
                       new SetAuthConstraint());
        mapper.addRule("web-app/security-constraint/auth-constraint/role-name",
                       mapper.methodSetter("addAuthRole", 0));
View Full Code Here

        mapper.addRule("web-app/security-constraint/user-data-constraint/transport-guarantee",
                       mapper.methodSetter("setUserConstraint", 0));
        mapper.addRule("web-app/security-constraint/web-resource-collection",
                       mapper.objectCreate("org.apache.catalina.deploy.SecurityCollection"));
        mapper.addRule("web-app/security-constraint/web-resource-collection",
                       mapper.addChild("addCollection",
                                       "org.apache.catalina.deploy.SecurityCollection"));
        mapper.addRule("web-app/security-constraint/web-resource-collection/http-method",
                       mapper.methodSetter("addMethod", 0));
        mapper.addRule("web-app/security-constraint/web-resource-collection/url-pattern",
                       mapper.methodSetter("addPattern", 0));
View Full Code Here

                       mapper.methodParam(0));

        mapper.addRule("web-app/servlet",
                       new WrapperCreate(context));
        mapper.addRule("web-app/servlet",
                       mapper.addChild("addChild",
                                       "org.apache.catalina.Container"));
        mapper.addRule("web-app/servlet/init-param",
                       mapper.methodSetter("addInitParameter", 2));
        mapper.addRule("web-app/servlet/init-param/param-name",
                       mapper.methodParam(0));
View Full Code Here

                       new SetDistributableAction());

        mapper.addRule("web-app/ejb-local-ref",
                 mapper.objectCreate("org.apache.catalina.deploy.ContextLocalEjb"));
        mapper.addRule("web-app/ejb-local-ref",
                       mapper.addChild("addLocalEjb",
                                     "org.apache.catalina.deploy.ContextLocalEjb"));
        mapper.addRule("web-app/ejb-local-ref/description",
                       mapper.methodSetter("setDescription", 0));
        mapper.addRule("web-app/ejb-local-ref/ejb-ref-name",
                       mapper.methodSetter("setName", 0));
View Full Code Here

                       mapper.methodSetter("setLink", 0));

        mapper.addRule("web-app/ejb-ref",
                 mapper.objectCreate("org.apache.catalina.deploy.ContextEjb"));
        mapper.addRule("web-app/ejb-ref",
                       mapper.addChild("addEjb",
                                     "org.apache.catalina.deploy.ContextEjb"));
        mapper.addRule("web-app/ejb-ref/description",
                       mapper.methodSetter("setDescription", 0));
        mapper.addRule("web-app/ejb-ref/ejb-ref-name",
                       mapper.methodSetter("setName", 0));
View Full Code Here

                       mapper.methodSetter("setLink", 0));

        mapper.addRule("web-app/env-entry",
         mapper.objectCreate("org.apache.catalina.deploy.ContextEnvironment"));
        mapper.addRule("web-app/env-entry",
                       mapper.addChild("addEnvironment",
                             "org.apache.catalina.deploy.ContextEnvironment"));
        mapper.addRule("web-app/env-entry/env-entry-description",
                       mapper.methodSetter("setDescription", 0));
        mapper.addRule("web-app/env-entry/env-entry-name",
                       mapper.methodSetter("setName", 0));
View Full Code Here

                       mapper.methodSetter("setValue", 0));

        mapper.addRule("web-app/error-page",
                  mapper.objectCreate("org.apache.catalina.deploy.ErrorPage"));
        mapper.addRule("web-app/error-page",
                       mapper.addChild("addErrorPage",
                               "org.apache.catalina.deploy.ErrorPage"));
        mapper.addRule("web-app/error-page/error-code",
                       mapper.methodSetter("setErrorCode", 0));
        mapper.addRule("web-app/error-page/exception-type",
                       mapper.methodSetter("setExceptionType", 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.