1 /*
2 * Angkor Web Framework
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */
7
8 package com.tirsen.angkor.jsp;
9
10 import com.tirsen.angkor.ApplicationFilter;
11
12 import javax.servlet.FilterChain;
13 import javax.servlet.FilterConfig;
14 import javax.servlet.ServletException;
15 import javax.servlet.ServletRequest;
16 import javax.servlet.ServletResponse;
17 import java.io.IOException;
18
19 /***
20 * A filter doing both {@link ApplicationFilter} and {@link PrerenderFilter}.
21 *
22 * <!-- $Id: PrerenderApplicationFilter.java,v 1.4 2002/10/13 13:37:26 tirsen Exp $ -->
23 *
24 * @author $Author: tirsen $
25 * @version $Revision: 1.4 $
26 */
27 public class PrerenderApplicationFilter extends ApplicationFilter
28 {
29 private PrerenderFilter prerender = new PrerenderFilter();
30
31 public void doFilter(ServletRequest sRequest, ServletResponse sResponse, FilterChain chain)
32 throws IOException, ServletException
33 {
34 FilterChain doNothing = new FilterChain()
35 {
36 public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException
37 {
38 }
39 };
40 super.doFilter(sRequest, sResponse, doNothing);
41 prerender.doFilter(sRequest, sResponse, chain);
42 }
43
44 public void destroy()
45 {
46 }
47 }
This page was automatically generated by Maven