Examples of methodSetter()


Examples of org.apache.tomcat.util.xml.XmlMapper.methodSetter()

      xh.addRule("web-app/mime-mapping", xh.methodSetter("addContentType", 2) );
      xh.addRule("web-app/mime-mapping/extension", xh.methodParam(0) );
      xh.addRule("web-app/mime-mapping/mime-type", xh.methodParam(1) );

      xh.addRule("web-app/welcome-file-list/welcome-file", xh.methodSetter("addWelcomeFile", 0) );

      xh.addRule("web-app/error-page", xh.methodSetter("addErrorPage",2) );
      xh.addRule("web-app/error-page/error-code", xh.methodParam(0) );
      xh.addRule("web-app/error-page/exception-type", xh.methodParam(0) );
      xh.addRule("web-app/error-page/location", xh.methodParam(1) );
View Full Code Here

Examples of org.apache.tomcat.util.xml.XmlMapper.methodSetter()

      xh.addRule("web-app/mime-mapping/extension", xh.methodParam(0) );
      xh.addRule("web-app/mime-mapping/mime-type", xh.methodParam(1) );

      xh.addRule("web-app/welcome-file-list/welcome-file", xh.methodSetter("addWelcomeFile", 0) );

      xh.addRule("web-app/error-page", xh.methodSetter("addErrorPage",2) );
      xh.addRule("web-app/error-page/error-code", xh.methodParam(0) );
      xh.addRule("web-app/error-page/exception-type", xh.methodParam(0) );
      xh.addRule("web-app/error-page/location", xh.methodParam(1) );

      xh.addRule("web-app/session-config", xh.methodSetter("setSessionTimeOut", 1, new String[]{"int"}));
View Full Code Here

Examples of org.apache.tomcat.util.xml.XmlMapper.methodSetter()

      xh.addRule("web-app/error-page", xh.methodSetter("addErrorPage",2) );
      xh.addRule("web-app/error-page/error-code", xh.methodParam(0) );
      xh.addRule("web-app/error-page/exception-type", xh.methodParam(0) );
      xh.addRule("web-app/error-page/location", xh.methodParam(1) );

      xh.addRule("web-app/session-config", xh.methodSetter("setSessionTimeOut", 1, new String[]{"int"}));
      xh.addRule("web-app/session-config/session-timeout", xh.methodParam(0));

      // Servlet
      xh.addRule("web-app/servlet", xh.objectCreate("org.apache.tomcat.facade.ServletInfo") ); // servlet-wrapper
      xh.addRule("web-app/servlet", xh.setParent( "setContext") ); // remove it from stack when done
View Full Code Here

Examples of org.apache.tomcat.util.xml.XmlMapper.methodSetter()

             sw.addServlet(cctx, wxr);
         }
           }
       );
      // remove it from stack when done
      xh.addRule("web-app/servlet/servlet-name", xh.methodSetter("setServletName",0) );
      xh.addRule("web-app/servlet/servlet-class", xh.methodSetter("setServletClassName",0));
      xh.addRule("web-app/servlet/jsp-file",
           xh.methodSetter("setJspFile",0));

      xh.addRule("web-app/servlet/security-role-ref", xh.methodSetter("addSecurityMapping", 3) );
View Full Code Here

Examples of org.apache.tomcat.util.xml.XmlMapper.methodSetter()

         }
           }
       );
      // remove it from stack when done
      xh.addRule("web-app/servlet/servlet-name", xh.methodSetter("setServletName",0) );
      xh.addRule("web-app/servlet/servlet-class", xh.methodSetter("setServletClassName",0));
      xh.addRule("web-app/servlet/jsp-file",
           xh.methodSetter("setJspFile",0));

      xh.addRule("web-app/servlet/security-role-ref", xh.methodSetter("addSecurityMapping", 3) );
      xh.addRule("web-app/servlet/security-role-ref/role-name", xh.methodParam(0) );
View Full Code Here

Examples of org.apache.tomcat.util.xml.XmlMapper.methodSetter()

       );
      // remove it from stack when done
      xh.addRule("web-app/servlet/servlet-name", xh.methodSetter("setServletName",0) );
      xh.addRule("web-app/servlet/servlet-class", xh.methodSetter("setServletClassName",0));
      xh.addRule("web-app/servlet/jsp-file",
           xh.methodSetter("setJspFile",0));

      xh.addRule("web-app/servlet/security-role-ref", xh.methodSetter("addSecurityMapping", 3) );
      xh.addRule("web-app/servlet/security-role-ref/role-name", xh.methodParam(0) );
      xh.addRule("web-app/servlet/security-role-ref/role-link", xh.methodParam(1) );
      xh.addRule("web-app/servlet/security-role-ref/description", xh.methodParam(2) );
View Full Code Here

Examples of org.apache.tomcat.util.xml.XmlMapper.methodSetter()

      xh.addRule("web-app/servlet/servlet-name", xh.methodSetter("setServletName",0) );
      xh.addRule("web-app/servlet/servlet-class", xh.methodSetter("setServletClassName",0));
      xh.addRule("web-app/servlet/jsp-file",
           xh.methodSetter("setJspFile",0));

      xh.addRule("web-app/servlet/security-role-ref", xh.methodSetter("addSecurityMapping", 3) );
      xh.addRule("web-app/servlet/security-role-ref/role-name", xh.methodParam(0) );
      xh.addRule("web-app/servlet/security-role-ref/role-link", xh.methodParam(1) );
      xh.addRule("web-app/servlet/security-role-ref/description", xh.methodParam(2) );

      xh.addRule("web-app/servlet/init-param", xh.methodSetter("addInitParam", 2) ); // addXXX
View Full Code Here

Examples of org.apache.tomcat.util.xml.XmlMapper.methodSetter()

      xh.addRule("web-app/servlet/security-role-ref", xh.methodSetter("addSecurityMapping", 3) );
      xh.addRule("web-app/servlet/security-role-ref/role-name", xh.methodParam(0) );
      xh.addRule("web-app/servlet/security-role-ref/role-link", xh.methodParam(1) );
      xh.addRule("web-app/servlet/security-role-ref/description", xh.methodParam(2) );

      xh.addRule("web-app/servlet/init-param", xh.methodSetter("addInitParam", 2) ); // addXXX
      xh.addRule("web-app/servlet/init-param/param-name", xh.methodParam(0) );
      xh.addRule("web-app/servlet/init-param/param-value", xh.methodParam(1) );

      xh.addRule("web-app/servlet/icon/small-icon", xh.methodSetter("setIcon",0 )); // icon, body
      xh.addRule("web-app/servlet/description", xh.methodSetter("setDescription", 0) ); // description, body
View Full Code Here

Examples of org.apache.tomcat.util.xml.XmlMapper.methodSetter()

      xh.addRule("web-app/servlet/init-param", xh.methodSetter("addInitParam", 2) ); // addXXX
      xh.addRule("web-app/servlet/init-param/param-name", xh.methodParam(0) );
      xh.addRule("web-app/servlet/init-param/param-value", xh.methodParam(1) );

      xh.addRule("web-app/servlet/icon/small-icon", xh.methodSetter("setIcon",0 )); // icon, body
      xh.addRule("web-app/servlet/description", xh.methodSetter("setDescription", 0) ); // description, body
      xh.addRule("web-app/servlet/load-on-startup", xh.methodSetter("setLoadOnStartUp", 0 ));


      addSecurity( xh );
View Full Code Here

Examples of org.apache.tomcat.util.xml.XmlMapper.methodSetter()

      xh.addRule("web-app/servlet/init-param", xh.methodSetter("addInitParam", 2) ); // addXXX
      xh.addRule("web-app/servlet/init-param/param-name", xh.methodParam(0) );
      xh.addRule("web-app/servlet/init-param/param-value", xh.methodParam(1) );

      xh.addRule("web-app/servlet/icon/small-icon", xh.methodSetter("setIcon",0 )); // icon, body
      xh.addRule("web-app/servlet/description", xh.methodSetter("setDescription", 0) ); // description, body
      xh.addRule("web-app/servlet/load-on-startup", xh.methodSetter("setLoadOnStartUp", 0 ));


      addSecurity( xh );
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.