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

          主站蜘蛛池模板: 登封市| 五指山市| 宣恩县| 克东县| 芷江| 札达县| 通辽市| 宜兴市| 华容县| 富宁县| 龙里县| 大名县| 洛浦县| 柯坪县| 兴义市| 宜阳县| 吉首市| 樟树市| 社会| 葵青区| 北碚区| 定安县| 永安市| 奎屯市| 太康县| 喀喇沁旗| 博客| 新安县| 永仁县| 晋中市| 长垣县| 天祝| 丹阳市| 鄢陵县| 正宁县| 麦盖提县| 佳木斯市| 鲁山县| 连云港市| 孝感市| 孟州市|