Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/security UnsecureServlet.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/security UnsecureServlet.java

Author stack
Full name Michael Stack
Date 2000-12-07 17:56:10 PST
Message User: stack
  Date: 00/12/07 17:56:10

  Modified: java/org/joist/security UnsecureServlet.java
  Log:
  Read from properties whether or not to run WebStats
  
  Revision Changes Path
  1.92 +20 -3 joist/java/org/joist​/security/UnsecureSe​rvlet.java
  
  Index: UnsecureServlet.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/security/Unsec​ureServlet.java,v
  retrieving revision 1.91
  retrieving revision 1.92
  diff -u -r1.91 -r1.92
  --- UnsecureServlet.java 2000/12/07 06:33:04 1.91
  +++ UnsecureServlet.java 2000/12/08 01:56:09 1.92
  @@ -73,7 +73,7 @@
    * loading to WebMacro servlets.
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
  - * @version $Revision: 1.91 $
  + * @version $Revision: 1.92 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 CollabNet, Inc.
  @@ -146,6 +146,15 @@
        */
       private static WebStats webStats = null;
   
  + /** Key to pull webStats on/off property
  + */
  + private final static String WEBSTATS_BOOL
  + = "org.joist.security.​UnsecureServlet.webS​tats.on";
  +
  + /** Whether to do webstats.
  + */
  + private static boolean boolWebStats = false;
  +
       /**
        * Cache for Servlet instances.
        */
  @@ -1179,8 +1188,9 @@
       masterTemplateName = myProperties.getProp​erty("templateName")​;
       if (debug) log.info("Default template name: " + masterTemplateName);
   
  - // Initialize the stats object.
  - if (webStats == null)
  + // Initialize the stats object if we're to run webStats.
  + //
  + if( webStats == null && boolWebStats )
       {
           String logTraffic =
           myProperties.getProp​erty("logTraffic", "false");
  @@ -1227,6 +1237,13 @@
           {
               log.warning("Failed starting memory sentinel: " + e);
           }
  +
  + // Initialize the boolean that says whether or not to run webStats
  + //
  + boolWebStats
  + = (new Boolean(myProperties​.getProperty(WEBSTAT​S_BOOL))).booleanVal​ue();
  + if( debug )
  + log.info( "WebStats " + ( boolWebStats ? "on." : "off." ) );
       }
   
       /**

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/java/org/joist/security UnsecureServlet.java stack Michael Stack 2000-12-07 17:56:10 PST
Messages per page: