Clover coverage report - Cactus 1.4.1 for J2EE API 13
Coverage timestamp: Sat Aug 31 2002 22:02:23 BST
file stats: LOC: 49   Methods: 2
NCLOC: 15   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ServletConfiguration.java 50% 66.7% 50% 60%
 1   
 /*   Generated by AspectJ version 1.0.5 */
 2   
 package org.apache.cactus.util;
 3   
 /** 
 4   
  * Provides access to the Cactus configuration parameters related to the 
 5   
  * Servlet Redirector. 
 6   
  * 
 7   
  * @author <a href="mailto:vmassol@apache.org">Vincent Massol</a> 
 8   
  * 
 9   
  * @version $Id: ServletConfiguration.html,v 1.1 2003/04/14 12:27:33 sinisa Exp $ 
 10   
  * 
 11   
  * @see Configuration 
 12   
  */
 13   
 public class ServletConfiguration extends Configuration {
 14   
   /** 
 15   
        * Name of the cactus property that specifies the name of the Servlet 
 16   
        * redirector. 
 17   
        */
 18   
   public static final String CACTUS_SERVLET_REDIRECTOR_NAME_PROPERTY = 
 19   
       "cactus.servletRedirectorName";
 20   
   /** 
 21   
        * Read the Servlet redirector name from a System property first and then 
 22   
        * if it fails from the Cactus configuration file and then use the default 
 23   
        * "ServletRedirector" name if it fails. 
 24   
        * 
 25   
        * @return the Servlet redirector URL 
 26   
        */
 27  535
   public static String getServletRedirectorURL() {
 28  535
     ServletConfiguration.initialize();
 29  535
     String servletRedirectorName = System.getProperty("cactus.servletRedirectorName");
 30  535
     if (servletRedirectorName == null) {
 31  0
       servletRedirectorName = "ServletRedirector";
 32   
     } 
 33  535
     return ServletConfiguration.getContextURL() + "/" + servletRedirectorName;
 34   
   } 
 35   
 
 36   
   /** 
 37   
    * Provides access to the Cactus configuration parameters related to the 
 38   
    * Servlet Redirector. 
 39   
    * 
 40   
    * @author <a href="mailto:vmassol@apache.org">Vincent Massol</a> 
 41   
    * 
 42   
    * @version $Id: ServletConfiguration.html,v 1.1 2003/04/14 12:27:33 sinisa Exp $ 
 43   
    * 
 44   
    * @see Configuration 
 45   
    */
 46  0
   public ServletConfiguration() {
 47  0
     super();
 48   
   } 
 49   
 }