KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > presentation > pagecache > FilterHandler


1 package org.roller.presentation.pagecache;
2
3 import org.roller.pojos.UserData;
4
5 import java.io.IOException JavaDoc;
6
7 import javax.servlet.FilterChain JavaDoc;
8 import javax.servlet.ServletException JavaDoc;
9 import javax.servlet.ServletRequest JavaDoc;
10 import javax.servlet.ServletResponse JavaDoc;
11 import javax.servlet.http.HttpServletRequest JavaDoc;
12
13 public interface FilterHandler
14 {
15     /**
16      * Clean up anything necessary before destruction.
17      */

18     public void destroy();
19
20     /**
21      * Exactly as Filter.doFilter().
22      */

23     public void doFilter(ServletRequest JavaDoc request,
24         ServletResponse JavaDoc response, FilterChain JavaDoc chain)
25         throws ServletException JavaDoc, IOException JavaDoc;
26
27     /**
28      * Clear the entire cache.
29      */

30     public void flushCache(HttpServletRequest JavaDoc req);
31
32     /**
33      * Remove the entries for this User
34      * from the cache.
35      */

36     public void removeFromCache(HttpServletRequest JavaDoc req,UserData user);
37 }
38
Popular Tags