honzeland

          記錄點滴。。。

          常用鏈接

          統計

          Famous Websites

          Java

          Linux

          P2P

          最新評論

          Tomcat Architecture Diagram

          zz from http://marakana.com/forums/tomcat/general/106.html


          Valve and Filter:
          "Valve" is Tomcat specific notion, and they get applied at a higher level than anything in a specific webapp. Also, they work only in Tomcat.

          "Filter" is a Servlet Specification notion and should work in any compliant servlet container. They get applied at a lower level than all of Tomcat's
          Valves.

          However, consider also the division between your application and the application  server. Think whether the feature you're planning is part of your application, or is it rather a generic feature of the application server, which could have uses in other applications as well. This would be the correct criteria to decide between Valve and Filter.

          Order for filter: The order in which they are defined matters. The container will execute the filters in the order in which they are defined.

          posted on 2010-05-10 10:39 honzeland 閱讀(1567) 評論(0)  編輯  收藏 所屬分類: JavaWeb

          主站蜘蛛池模板: 云龙县| 本溪市| 湘潭市| 阳新县| 夏邑县| 乌拉特中旗| 永城市| 呈贡县| 巫溪县| 施甸县| 海口市| 汶川县| 桐柏县| 宜阳县| 汨罗市| 杭州市| 九台市| 会宁县| 民乐县| 桂东县| 阿鲁科尔沁旗| 且末县| 龙口市| 区。| 舒城县| 石屏县| 固阳县| 柳州市| 体育| 扬中市| 罗田县| 永善县| 新竹市| 广宁县| 托里县| 乌拉特前旗| 井冈山市| 红安县| 武宁县| 乐陵市| 龙游县|