?1?? public abstract class TemplateFilter implements javax.servlet.Filter {
2???? private FilterConfig filterConfig;
3???? public void init(FilterConfig filterConfig) throws ServletException {
4?????? this.filterConfig = filterConfig;
5???? }
7???? protected FilterConfig getFilterConfig()??? {
8?????? return filterConfig;
9???? }
11??? public void doFilter(ServletRequest request,
12??????? ServletResponse response, FilterChain chain)
13??????? throws IOException, ServletException {
14
15?????? // Preprocessing for each filter
16?????? doPreProcessing(request, response);
17
18?????? // Pass control to the next filter in the chain or
19?????? // to the target resource. This method invocation is what logically
20?????? // demarcates preprocessing from postprocessing.
21?????? chain.doFilter(request, response);
22
23?????? // Post-processing for each filter
24?????? doPostProcessing(request, response);
25???? }
26???? public abstract void doPreProcessing(ServletRequest request,
27???????? ServletResponse response) { }
28
29???? public abstract void doPostProcessing(ServletRequest request,
30???????? ServletResponse response) { }
32???? public void destroy() { }
33? }
|
相关推荐
Core J2EE Patterns 2nd Editioin
核心的J2EE设计模式
Core J2EE Patterns核心模式第二版源码,与书籍配套学习.
Core J2EE Patterns
关于J2EE设计模式的经典著作,由SUN资深工程师经验写就。
Core J2EE Patterns - Best Practices and Design Strategies - 2nd Edition J2EE开发人员必读书籍
SUN - Core J2EE patterns
中文版压缩成2卷,这是第一卷。 本书讲解使用J2EE核心技术实现企业应用过程中的模式、最佳实践、设计策略以及经过验证的解决方案,涵盖了JSP、servlet、EJB、JMS等技术,其中J2EE模式目录包括21个模式以及大量策略...
prentice hall - core j2ee patterns - best practices and design strategies, second edition.part2
prentice hall - core j2ee patterns - best practices and design strategies, second edition.part3
The book of CoreJ2EE_Patterns2nd is very good book to study J2EE,it contains both pdf and chm formats.
prentice hall - core j2ee patterns - best practices and design strategies, second edition.part1
J2EE 核心设计模式。Interceptiong Filter、Service Locator 、BUsiness Delegate 等。
真的能打开,是.chm格式的,别的地方已经很难找了 自己下载分快不够了,才来赚点分,我也不贪心,就3分 谁觉得值的或者用得着的就下
during development: by applying one of their patterns, you in effect take the benefit of their hard-won knowledge. As such, the best patterns are not so much invented as they are discovered and then...
J2EE Patterns.chm
资料是官网的,自己制作成pdf格式,欢迎下载
本书讲解使用J2EE核心技术实现企业应用过程中的模式、最佳实践、设计策略以及经过验证的解决方案,涵盖了JSP、servlet、EJB、JMS等技术,其中J2EE模式目录包括21个模式以及大量策略,帮助读者迅速熟练掌握J2EE技术,...