geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r470493 - /geronimo/server/trunk/modules/geronimo-tomcat/src/main/java/org/apache/geronimo/tomcat/ConnectorGBean.java
Date Thu, 02 Nov 2006 19:54:12 GMT
Author: vamsic007
Date: Thu Nov  2 11:54:11 2006
New Revision: 470493

URL: http://svn.apache.org/viewvc?view=rev&rev=470493
Log:
GERONIMO-2343 tomcat does not use maxPostSize set in config.xml

Modified:
    geronimo/server/trunk/modules/geronimo-tomcat/src/main/java/org/apache/geronimo/tomcat/ConnectorGBean.java

Modified: geronimo/server/trunk/modules/geronimo-tomcat/src/main/java/org/apache/geronimo/tomcat/ConnectorGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-tomcat/src/main/java/org/apache/geronimo/tomcat/ConnectorGBean.java?view=diff&rev=470493&r1=470492&r2=470493
==============================================================================
--- geronimo/server/trunk/modules/geronimo-tomcat/src/main/java/org/apache/geronimo/tomcat/ConnectorGBean.java
(original)
+++ geronimo/server/trunk/modules/geronimo-tomcat/src/main/java/org/apache/geronimo/tomcat/ConnectorGBean.java
Thu Nov  2 11:54:11 2006
@@ -410,14 +410,12 @@
     }
 
     public int getMaxPostSize() {
-        Object value = connector.getAttribute("maxPostSize");
-        return value == null ? 2097152 : Integer.parseInt(value.toString());
+        int value = connector.getMaxPostSize();
+        return value == 0 ? 2097152 : value;
     }
 
     public void setMaxPostSize(int bytes) {
-        // TODO Auto-generated method stub
-        connector.setAttribute("maxPostSize", new Integer(bytes));
-        
+        connector.setMaxPostSize(bytes);
     }
 
     public int getMaxSavePostSize() {



Mime
View raw message