tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core StandardContext.java
Date Wed, 17 Dec 2003 22:39:27 GMT
remm        2003/12/17 14:39:27

  Modified:    catalina/src/share/org/apache/catalina/core
                        StandardContext.java
  Log:
  - Set all common resources attributes on start (incl allowLinking).
  - Bug 25593.
  
  Revision  Changes    Path
  1.103     +13 -1     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java
  
  Index: StandardContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
  retrieving revision 1.102
  retrieving revision 1.103
  diff -u -r1.102 -r1.103
  --- StandardContext.java	27 Nov 2003 00:37:29 -0000	1.102
  +++ StandardContext.java	17 Dec 2003 22:39:27 -0000	1.103
  @@ -3847,8 +3847,20 @@
           try {
               ProxyDirContext proxyDirContext =
                   new ProxyDirContext(env, webappResources);
  +            if (webappResources instanceof FileDirContext) {
  +                filesystemBased = true;
  +                ((FileDirContext) webappResources).setCaseSensitive
  +                    (isCaseSensitive());
  +                ((FileDirContext) webappResources).setAllowLinking
  +                    (isAllowLinking());
  +            }
               if (webappResources instanceof BaseDirContext) {
                   ((BaseDirContext) webappResources).setDocBase(getBasePath());
  +                ((BaseDirContext) webappResources).setCached
  +                    (isCachingAllowed());
  +                ((BaseDirContext) webappResources).setCacheTTL(getCacheTTL());
  +                ((BaseDirContext) webappResources).setCacheMaxSize
  +                    (getCacheMaxSize());
                   ((BaseDirContext) webappResources).allocate();
               }
               // Register the cache in JMX
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message