Clover Coverage Report - Atlassian Core
Coverage timestamp: Sun Nov 30 2008 18:33:35 CST
3   43   5   0.75
0   27   1.67   4
4     1.25  
1    
 
 
  AbstractFilter       Line # 11 3 5 0% 0.0
 
No Tests
 
1    package com.atlassian.core.filters;
2   
3    import javax.servlet.Filter;
4    import javax.servlet.FilterConfig;
5    import javax.servlet.ServletException;
6   
7    /**
8    * This class contains two deprecated methods to make filters compatible with old web application servers that are using
9    * the old servlet spec
10    */
 
11    public abstract class AbstractFilter implements Filter
12    {
13    /** @deprecated Not needed in final version of Servlet 2.3 API - replaced by init(). */
14    // NOTE: Applications don't work in Orion 1.5.2 without this method
 
15  0 toggle public FilterConfig getFilterConfig()
16    {
17  0 return null;
18    }
19   
20    /** @deprecated Not needed in final version of Servlet 2.3 API - replaced by init(). */
21    // NOTE: Applications don't work with Orion 1.5.2 without this method
 
22  0 toggle public void setFilterConfig(FilterConfig filterConfig)
23    {
24  0 try
25    {
26  0 init(filterConfig);
27    }
28    catch (ServletException e)
29    {
30    //do nothing
31    }
32    }
33   
 
34  0 toggle public void init(FilterConfig filterConfig) throws ServletException
35    {
36    // Implemented for convenience
37    }
38   
 
39  0 toggle public void destroy()
40    {
41    // Implemented for convenience
42    }
43    }