geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r620623 - /geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java
Date Mon, 11 Feb 2008 21:51:04 GMT
Author: vamsic007
Date: Mon Feb 11 13:51:02 2008
New Revision: 620623

URL: http://svn.apache.org/viewvc?rev=620623&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

Modified:
    geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java

Modified: geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java?rev=620623&r1=620622&r2=620623&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java
(original)
+++ geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/GeronimoStandardContext.java
Mon Feb 11 13:51:02 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 {
 
@@ -184,6 +192,8 @@
         this.setCrossContext(ctx.isCrossContext());
 
         this.setWorkDir(ctx.getWorkDir());
+
+        super.setAllowLinking(allowLinking);
 
         this.setCookies(!ctx.isDisableCookies());
 



Mime
View raw message