You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by va...@apache.org on 2008/02/11 22:56:48 UTC

svn commit: r620627 - /geronimo/server/branches/2.0/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java

Author: vamsic007
Date: Mon Feb 11 13:56:47 2008
New Revision: 620627

URL: http://svn.apache.org/viewvc?rev=620627&view=rev
Log:
GERONIMO-3837 allowLinking Tomcat atttibute in StandardContext not configurable through Geronimo
 o Enabling this attribute per server instance using a system property org.apache.geronimo.tomcat.GeronimoStandardContext.allowLinking
 o Ref rev 620623

Modified:
    geronimo/server/branches/2.0/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java

Modified: geronimo/server/branches/2.0/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java?rev=620627&r1=620626&r2=620627&view=diff
==============================================================================
--- geronimo/server/branches/2.0/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java (original)
+++ geronimo/server/branches/2.0/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java Mon Feb 11 13:56:47 2008
@@ -57,6 +57,9 @@
 import org.apache.geronimo.webservices.WebServiceContainerInvoker;
 
 
+/**
+ * @version $Rev$ $Date$
+ */
 public class GeronimoStandardContext extends StandardContext {
 
     private static final long serialVersionUID = 3834587716552831032L;
@@ -71,6 +74,11 @@
     private BeforeAfter beforeAfter = null;
     private int contextCount = 0;
     
+    private static final boolean allowLinking;
+    
+    static {
+        allowLinking = new Boolean(System.getProperty("org.apache.geronimo.tomcat.GeronimoStandardContext.allowLinking", "false"));
+    }
 
     public void setContextProperties(TomcatContext ctx) throws DeploymentException {
 
@@ -179,6 +187,8 @@
         this.setCrossContext(ctx.isCrossContext());
 
         this.setWorkDir(ctx.getWorkDir());
+
+        super.setAllowLinking(allowLinking);
 
         this.setCookies(!ctx.isDisableCookies());