You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by xi...@apache.org on 2012/04/27 09:12:06 UTC

svn commit: r1331256 - in /geronimo/server/branches/2.2/plugins/tomcat/geronimo-tomcat6/src/main: java/org/apache/geronimo/tomcat/model/ConnectorType.java xsd/server.xsd

Author: xiaming
Date: Fri Apr 27 07:12:06 2012
New Revision: 1331256

URL: http://svn.apache.org/viewvc?rev=1331256&view=rev
Log:
GERONIMO-6339 Tomcat model class ConnectorType needs to add maxParameterCount property when enabling maxParameterCount support

Modified:
    geronimo/server/branches/2.2/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/model/ConnectorType.java
    geronimo/server/branches/2.2/plugins/tomcat/geronimo-tomcat6/src/main/xsd/server.xsd

Modified: geronimo/server/branches/2.2/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/model/ConnectorType.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/model/ConnectorType.java?rev=1331256&r1=1331255&r2=1331256&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/model/ConnectorType.java (original)
+++ geronimo/server/branches/2.2/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/model/ConnectorType.java Fri Apr 27 07:12:06 2012
@@ -94,6 +94,8 @@ public class ConnectorType {
     @XmlAttribute
     protected Boolean enableLookups;
     @XmlAttribute
+    protected Integer maxParameterCount;
+    @XmlAttribute
     protected Integer maxPostSize;
     @XmlAttribute
     protected Integer maxSavePostSize;
@@ -125,6 +127,7 @@ public class ConnectorType {
     private Map<QName, String> otherAttributes = new HashMap<QName, String>();
     private static final String EMPTY_SESSION_PATH = "emptySessionPath";
     private static final String ENABLE_LOOKUPS = "enableLookups";
+    private static final String MAX_PARAMETER_COUNT = "maxParameterCount";
     private static final String MAX_POST_SIZE = "maxPostSize";
     private static final String MAX_SAVE_POST_SIZE = "maxSavePostSize";
     private static final String PORT = "port";
@@ -248,6 +251,26 @@ public class ConnectorType {
     public void setEnableLookups(Boolean value) {
         this.enableLookups = value;
     }
+    
+    /**
+     * Gets the value of the maxParameterCount property.
+     *
+     * @return possible object is
+     *         {@link Integer }
+     */
+    public Integer getMaxParameterCount() {
+        return maxParameterCount;
+    }
+
+    /**
+     * Sets the value of the maxParameterCount property.
+     *
+     * @param value allowed object is
+     *              {@link Integer }
+     */
+    public void setMaxParameterCount(Integer value) {
+        this.maxParameterCount = value;
+    }
 
     /**
      * Gets the value of the maxPostSize property.
@@ -557,6 +580,9 @@ public class ConnectorType {
         if (isEnableLookups() != null) {
             properties.put(ENABLE_LOOKUPS, isEnableLookups());
         }
+        if (getMaxParameterCount() != null) {
+            properties.put(MAX_PARAMETER_COUNT, getMaxParameterCount());
+        }
         if (getMaxPostSize() != null) {
             properties.put(MAX_POST_SIZE, getMaxPostSize());
         }

Modified: geronimo/server/branches/2.2/plugins/tomcat/geronimo-tomcat6/src/main/xsd/server.xsd
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/tomcat/geronimo-tomcat6/src/main/xsd/server.xsd?rev=1331256&r1=1331255&r2=1331256&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/tomcat/geronimo-tomcat6/src/main/xsd/server.xsd (original)
+++ geronimo/server/branches/2.2/plugins/tomcat/geronimo-tomcat6/src/main/xsd/server.xsd Fri Apr 27 07:12:06 2012
@@ -130,6 +130,7 @@
     <xs:attribute type="xs:boolean" name="allowTrace"/>
     <xs:attribute type="xs:boolean" name="emptySessionPath"/>
     <xs:attribute type="xs:boolean" name="enableLookups"/>
+    <xs:attribute type="xs:int" name="maxParameterCount"/>
     <xs:attribute type="xs:int" name="maxPostSize"/>
     <xs:attribute type="xs:int" name="maxSavePostSize"/>
     <xs:attribute type="xs:int" name="port"/>
@@ -264,4 +265,4 @@
       <!-- see ContextRuleSet.  Very incomplete -->
     </xs:complexContent>
   </xs:complexType>
-</xs:schema>
\ No newline at end of file
+</xs:schema>