Clover coverage report - groovy - 1.0-beta-6
Coverage timestamp: Thu Jul 15 2004 13:18:22 BST
file stats: LOC: 90   Methods: 16
NCLOC: 55   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
ServletCategory.java - 0% 0% 0%
coverage
 1   
 /*
 2   
  * Created on Apr 27, 2004
 3   
  *
 4   
  * TODO To change the template for this generated file go to
 5   
  * Window - Preferences - Java - Code Generation - Code and Comments
 6   
  */
 7   
 package groovy.servlet;
 8   
 
 9   
 import javax.servlet.ServletContext;
 10   
 import javax.servlet.ServletRequest;
 11   
 import javax.servlet.http.HttpSession;
 12   
 import javax.servlet.jsp.PageContext;
 13   
 
 14   
 /**
 15   
  * @author sam
 16   
  *
 17   
  * TODO To change the template for this generated type comment go to
 18   
  * Window - Preferences - Java - Code Generation - Code and Comments
 19   
  */
 20   
 public class ServletCategory {
 21   
     
 22   
     /**
 23   
      * Servlet support
 24   
      */
 25  0
     public static Object get(ServletContext context, String key) {
 26  0
         return context.getAttribute(key);
 27   
     }
 28   
     
 29  0
     public static Object get(HttpSession session, String key) {
 30  0
         return session.getAttribute(key);
 31   
     }
 32   
     
 33  0
     public static Object get(ServletRequest request, String key) {
 34  0
         return request.getAttribute(key);
 35   
     }
 36   
 
 37  0
     public static Object get(PageContext context, String key) {
 38  0
         return context.getAttribute(key);
 39   
     }
 40   
 
 41  0
     public static Object getAt(ServletContext context, String key) {
 42  0
         return context.getAttribute(key);
 43   
     }
 44   
 
 45  0
     public static Object getAt(HttpSession session, String key) {
 46  0
         return session.getAttribute(key);
 47   
     }
 48   
 
 49  0
     public static Object getAt(ServletRequest request, String key) {
 50  0
         return request.getAttribute(key);
 51   
     }
 52   
 
 53  0
     public static Object getAt(PageContext context, String key) {
 54  0
         return context.getAttribute(key);
 55   
     }
 56   
 
 57  0
     public static void set(ServletContext context, String key, Object value) {
 58  0
         context.setAttribute(key, value);
 59   
     }
 60   
 
 61  0
     public static void set(HttpSession session, String key, Object value) {
 62  0
         session.setAttribute(key, value);
 63   
     }
 64   
 
 65  0
     public static void set(ServletRequest request, String key, Object value) {
 66  0
         request.setAttribute(key, value);
 67   
     }
 68   
 
 69  0
     public static void set(PageContext context, String key, Object value) {
 70  0
         context.setAttribute(key, value);
 71   
     }
 72   
 
 73  0
     public static void putAt(ServletContext context, String key, Object value) {
 74  0
         context.setAttribute(key, value);
 75   
     }
 76   
 
 77  0
     public static void putAt(HttpSession session, String key, Object value) {
 78  0
         session.setAttribute(key, value);
 79   
     }
 80   
 
 81  0
     public static void putAt(ServletRequest request, String key, Object value) {
 82  0
         request.setAttribute(key, value);
 83   
     }
 84   
 
 85  0
     public static void putAt(PageContext context, String key, Object value) {
 86  0
         context.setAttribute(key, value);
 87   
     }
 88   
 
 89   
 }
 90