2011/08/05 - Jakarta Cactus has been retired.

For more information, please explore the Attic.

Clover coverage report - Cactus 1.8dev for J2EE API 1.3
Coverage timestamp: Sun Mar 26 2006 18:50:18 BRT
file stats: LOC: 99   Methods: 6
NCLOC: 34   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
AbstractWebImplicitObjects.java - 100% 100% 100%
coverage
 1   
 /* 
 2   
  * ========================================================================
 3   
  * 
 4   
  * Copyright 2001-2004 The Apache Software Foundation.
 5   
  *
 6   
  * Licensed under the Apache License, Version 2.0 (the "License");
 7   
  * you may not use this file except in compliance with the License.
 8   
  * You may obtain a copy of the License at
 9   
  * 
 10   
  *   http://www.apache.org/licenses/LICENSE-2.0
 11   
  * 
 12   
  * Unless required by applicable law or agreed to in writing, software
 13   
  * distributed under the License is distributed on an "AS IS" BASIS,
 14   
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 15   
  * See the License for the specific language governing permissions and
 16   
  * limitations under the License.
 17   
  * 
 18   
  * ========================================================================
 19   
  */
 20   
 package org.apache.cactus.internal.server;
 21   
 
 22   
 import javax.servlet.ServletContext;
 23   
 import javax.servlet.http.HttpServletRequest;
 24   
 import javax.servlet.http.HttpServletResponse;
 25   
 
 26   
 
 27   
 /**
 28   
  * Holder class that contains the instances of the implicit objects that exist
 29   
  * for all web requests. Namely they are <code>HttpServletRequest</code>,
 30   
  * <code>HttpServletResponse</code> and <code>ServletContext</code>.
 31   
  *
 32   
  * @version $Id: AbstractWebImplicitObjects.java 238991 2004-05-22 11:34:50Z vmassol $
 33   
  */
 34   
 public abstract class AbstractWebImplicitObjects implements WebImplicitObjects
 35   
 {
 36   
     /**
 37   
      * The HTTP request object.
 38   
      */
 39   
     protected HttpServletRequest request;
 40   
 
 41   
     /**
 42   
      * The HTTP response object.
 43   
      */
 44   
     protected HttpServletResponse response;
 45   
 
 46   
     /**
 47   
      * The Context object.
 48   
      */
 49   
     protected ServletContext context;
 50   
 
 51   
     /**
 52   
      * @return the <code>ServletContext</code> implicit object
 53   
      */
 54  48
     public ServletContext getServletContext()
 55   
     {
 56  48
         return this.context;
 57   
     }
 58   
 
 59   
     /**
 60   
      * @param theContext the <code>ServletContext</code> implicit object
 61   
      */
 62  48
     public void setServletContext(ServletContext theContext)
 63   
     {
 64  48
         this.context = theContext;
 65   
     }
 66   
 
 67   
     /**
 68   
      * @return the <code>HttpServletResponse</code> implicit object
 69   
      */
 70  67
     public HttpServletResponse getHttpServletResponse()
 71   
     {
 72  67
         return this.response;
 73   
     }
 74   
 
 75   
     /**
 76   
      * @param theResponse the <code>HttpServletResponse</code> implicit object
 77   
      */
 78  48
     public void setHttpServletResponse(HttpServletResponse theResponse)
 79   
     {
 80  48
         this.response = theResponse;
 81   
     }
 82   
 
 83   
     /**
 84   
      * @return the <code>HttpServletRequest</code> implicit object
 85   
      */
 86  187
     public HttpServletRequest getHttpServletRequest()
 87   
     {
 88  187
         return this.request;
 89   
     }
 90   
 
 91   
     /**
 92   
      * @param theRequest the <code>HttpServletRequest</code> implicit object
 93   
      */
 94  48
     public void setHttpServletRequest(HttpServletRequest theRequest)
 95   
     {
 96  48
         this.request = theRequest;
 97   
     }
 98   
 }
 99