Package org.apache.tomcat.util.xml

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


      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


      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"}));
      xh.addRule("web-app/session-config/session-timeout", xh.methodParam(0));
View Full Code Here

      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"}));
      xh.addRule("web-app/session-config/session-timeout", xh.methodParam(0));
View Full Code Here

      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"}));
      xh.addRule("web-app/session-config/session-timeout", xh.methodParam(0));

      // Servlet
View Full Code Here

      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

      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
      //      xh.addRule("web-app/servlet", xh.addChild("addServlet", "org.apache.tomcat.core.Handler") );
View Full Code Here

      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
      //      xh.addRule("web-app/servlet", xh.addChild("addServlet", "org.apache.tomcat.core.Handler") );

      final WebXmlReader wxr=this;
      xh.addRule("web-app/servlet", new XmlAction() {
View Full Code Here

      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
      //      xh.addRule("web-app/servlet", xh.addChild("addServlet", "org.apache.tomcat.core.Handler") );

      final WebXmlReader wxr=this;
      xh.addRule("web-app/servlet", new XmlAction() {
         public void end( SaxContext xctx)
View Full Code Here

      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
      //      xh.addRule("web-app/servlet", xh.addChild("addServlet", "org.apache.tomcat.core.Handler") );

      final WebXmlReader wxr=this;
      xh.addRule("web-app/servlet", new XmlAction() {
         public void end( SaxContext xctx)
             throws Exception {
             ServletInfo sw=(ServletInfo)
           xctx.currentObject();
             Context cctx=(Context)xctx.previousObject();
View Full Code Here

             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

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.