geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r358407 - in /geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat: ConnectorGBean.java TomcatWebConnector.java
Date Wed, 21 Dec 2005 22:44:57 GMT
Author: jgenender
Date: Wed Dec 21 14:44:54 2005
New Revision: 358407

URL: http://svn.apache.org/viewcvs?rev=358407&view=rev
Log:
Added the maxPostSize and maxSavePostSize parameters

Modified:
    geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/ConnectorGBean.java
    geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebConnector.java

Modified: geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/ConnectorGBean.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/ConnectorGBean.java?rev=358407&r1=358406&r2=358407&view=diff
==============================================================================
--- geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/ConnectorGBean.java
(original)
+++ geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/ConnectorGBean.java
Wed Dec 21 14:44:54 2005
@@ -401,6 +401,25 @@
         connector.setAttribute("disableUploadTimeout", new Boolean(!enabled));
     }
 
+    public int getMaxPostSize() {
+        Object value = connector.getAttribute("maxPostSize");
+        return value == null ? 2097152 : Integer.parseInt(value.toString());
+    }
+
+    public void setMaxPostSize(int bytes) {
+        // TODO Auto-generated method stub
+        connector.setAttribute("maxPostSize", new Integer(bytes));
+        
+    }
+
+    public int getMaxSavePostSize() {
+        Object value = connector.getAttribute("maxSavePostSize");
+        return value == null ? 4096 : Integer.parseInt(value.toString());
+    }
+
+    public void setMaxSavePostSize(int kbytes) {
+        connector.setAttribute("maxSavePostSize", new Integer(kbytes));
+    }
 
     public static final GBeanInfo GBEAN_INFO;
 
@@ -410,7 +429,7 @@
         infoFactory.addAttribute("protocol", String.class, true);
         infoFactory.addReference(CONNECTOR_CONTAINER_REFERENCE, TomcatContainer.class, NameFactory.GERONIMO_SERVICE);
         infoFactory.addOperation("getInternalObject");
-        infoFactory.addInterface(TomcatWebConnector.class, new String[]{"host","port","bufferSizeBytes","maxThreads","acceptQueueSize","lingerMillis","tcpNoDelay","redirectPort","minSpareThreads","maxSpareThreads","maxHttpHeaderSizeBytes","hostLookupEnabled","connectionTimeoutMillis","uploadTimeoutEnabled","connectUrl",},
+        infoFactory.addInterface(TomcatWebConnector.class, new String[]{"host","port","bufferSizeBytes","maxThreads","acceptQueueSize","lingerMillis","tcpNoDelay","redirectPort","minSpareThreads","maxSpareThreads","maxHttpHeaderSizeBytes","hostLookupEnabled","connectionTimeoutMillis","uploadTimeoutEnabled","connectUrl","maxPostSize","maxSavePostSize"},
                                                            new String[]{"host","port","redirectPort"});
         infoFactory.setConstructor(new String[] { "name", "protocol", "host", "port", "TomcatContainer"});
         GBEAN_INFO = infoFactory.getBeanInfo();
@@ -419,4 +438,5 @@
     public static GBeanInfo getGBeanInfo() {
         return GBEAN_INFO;
     }
+
 }

Modified: geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebConnector.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebConnector.java?rev=358407&r1=358406&r2=358407&view=diff
==============================================================================
--- geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebConnector.java
(original)
+++ geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebConnector.java
Wed Dec 21 14:44:54 2005
@@ -10,6 +10,10 @@
  * @version $Revision: 1.0$
  */
 public interface TomcatWebConnector extends WebConnector {
+    public int getMaxPostSize();
+    public void setMaxPostSize(int bytes);
+    public int getMaxSavePostSize();
+    public void setMaxSavePostSize(int kbytes);
     public int getMinSpareThreads();
     public void setMinSpareThreads(int threads);
     public int getMaxSpareThreads();



Mime
View raw message