Author: sergeyb
Date: Wed Mar 14 13:11:18 2012
New Revision: 1300533

URL: http://svn.apache.org/viewvc?rev=1300533&view=rev
Log:
Merged revisions 1300530 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1300530 | sergeyb | 2012-03-14 12:58:17 +0000 (Wed, 14 Mar 2012) | 1 line
  
  [CXF-4172] Making the names of context properties shorter similar to the 
attachment properties
........

Modified:
    cxf/branches/2.5.x-fixes/   (props changed)
    
cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/DocumentDepthProperties.java
    
cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
    
cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java
    
cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/FormUtils.java
    
cxf/branches/2.5.x-fixes/systests/jaxrs/src/test/resources/jaxrs/WEB-INF/beans.xml

Propchange: cxf/branches/2.5.x-fixes/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Mar 14 13:11:18 2012
@@ -1 +1 @@
-/cxf/trunk:1236902,1297296,1298470,1298601-1298624,1298830,1298832,1299086,1299635,1299682,1299707,1299747,1300342
+/cxf/trunk:1236902,1297296,1298470,1298601-1298624,1298830,1298832,1299086,1299635,1299682,1299707,1299747,1300342,1300530

Propchange: cxf/branches/2.5.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: 
cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/DocumentDepthProperties.java
URL: 
http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/DocumentDepthProperties.java?rev=1300533&r1=1300532&r2=1300533&view=diff
==============================================================================
--- 
cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/DocumentDepthProperties.java
 (original)
+++ 
cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/DocumentDepthProperties.java
 Wed Mar 14 13:11:18 2012
@@ -19,6 +19,11 @@
 package org.apache.cxf.staxutils;
 
 public class DocumentDepthProperties {
+    
+    public static final String TOTAL_ELEMENT_COUNT = 
"depthTotalElementCountThreshold";
+    public static final String INNER_ELEMENT_COUNT = 
"depthInnerElementCountThreshold";
+    public static final String INNER_ELEMENT_LEVEL = 
"depthInnerElementLevelThreshold";
+    
     private int elementCountThreshold = -1;
     private int innerElementLevelThreshold = -1;
     private int innerElementCountThreshold = -1;

Modified: 
cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
URL: 
http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java?rev=1300533&r1=1300532&r2=1300533&view=diff
==============================================================================
--- 
cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
 (original)
+++ 
cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
 Wed Mar 14 13:11:18 2012
@@ -82,9 +82,10 @@ import org.apache.cxf.helpers.DOMUtils;
 import org.apache.cxf.helpers.XMLUtils;
 
 public final class StaxUtils {
-    public static final String TOTAL_ELEMENT_COUNT = 
"org.apache.cxf.staxutils.totalElementCountThreshold";
-    public static final String INNER_ELEMENT_COUNT = 
"org.apache.cxf.staxutils.innerElementCountThreshold";
-    public static final String INNER_ELEMENT_LEVEL = 
"org.apache.cxf.staxutils.innerElementLevelThreshold";
+    private static final String INNER_ELEMENT_COUNT_SYSTEM_PROP = 
+        "org.apache.cxf.staxutils.innerElementCountThreshold";
+    private static final String INNER_ELEMENT_LEVEL_SYSTEM_PROP = 
+        "org.apache.cxf.staxutils.innerElementLevelThreshold";
     
     private static final Logger LOG = LogUtils.getL7dLogger(StaxUtils.class);
     
@@ -118,7 +119,7 @@ public final class StaxUtils {
         NS_AWARE_INPUT_FACTORY_POOL = new 
LinkedBlockingQueue<XMLInputFactory>(i);
         OUTPUT_FACTORY_POOL = new LinkedBlockingQueue<XMLOutputFactory>(i);
         try {
-            String s =  SystemPropertyAction.getProperty(INNER_ELEMENT_LEVEL, 
"-1");
+            String s =  
SystemPropertyAction.getProperty(INNER_ELEMENT_LEVEL_SYSTEM_PROP, "-1");
             innerElementLevelThreshold = Integer.parseInt(s);
         } catch (Throwable t) {
             innerElementLevelThreshold = -1;
@@ -127,7 +128,7 @@ public final class StaxUtils {
             innerElementLevelThreshold = -1;
         }
         try {
-            String s =  SystemPropertyAction.getProperty(INNER_ELEMENT_COUNT, 
"-1");
+            String s =  
SystemPropertyAction.getProperty(INNER_ELEMENT_COUNT_SYSTEM_PROP, "-1");
             innerElementCountThreshold = Integer.parseInt(s);
         } catch (Throwable t) {
             innerElementCountThreshold = -1;

Modified: 
cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java
URL: 
http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java?rev=1300533&r1=1300532&r2=1300533&view=diff
==============================================================================
--- 
cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java
 (original)
+++ 
cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java
 Wed Mar 14 13:11:18 2012
@@ -75,7 +75,6 @@ import org.apache.cxf.phase.PhaseInterce
 import org.apache.cxf.staxutils.DepthRestrictingStreamReader;
 import org.apache.cxf.staxutils.DepthXMLStreamReader;
 import org.apache.cxf.staxutils.DocumentDepthProperties;
-import org.apache.cxf.staxutils.StaxUtils;
 import org.apache.cxf.staxutils.transform.TransformUtils;
 
 public abstract class AbstractJAXBProvider extends AbstractConfigurableProvider
@@ -624,11 +623,11 @@ public abstract class AbstractJAXBProvid
         }
         if (getContext() != null) {
             String totalElementCountStr = 
(String)getContext().getContextualProperty(
-                StaxUtils.TOTAL_ELEMENT_COUNT);
+                DocumentDepthProperties.TOTAL_ELEMENT_COUNT);
             String innerElementCountStr = 
(String)getContext().getContextualProperty(
-                StaxUtils.INNER_ELEMENT_COUNT);
+                DocumentDepthProperties.INNER_ELEMENT_COUNT);
             String elementLevelStr = 
(String)getContext().getContextualProperty(
-                StaxUtils.INNER_ELEMENT_LEVEL);
+                DocumentDepthProperties.INNER_ELEMENT_LEVEL);
             if (totalElementCountStr != null || innerElementCountStr != null 
|| elementLevelStr != null) {
                 try {
                     int totalElementCount = totalElementCountStr != null 

Modified: 
cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/FormUtils.java
URL: 
http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/FormUtils.java?rev=1300533&r1=1300532&r2=1300533&view=diff
==============================================================================
--- 
cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/FormUtils.java
 (original)
+++ 
cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/FormUtils.java
 Wed Mar 14 13:11:18 2012
@@ -49,7 +49,7 @@ public final class FormUtils {
     
     private static final Logger LOG = LogUtils.getL7dLogger(FormUtils.class);
     private static final String MULTIPART_FORM_DATA_TYPE = "form-data";  
-    private static final String MAX_FORM_PARAM_COUNT = 
"org.apache.cxf.form.maxParameterCount";  
+    private static final String MAX_FORM_PARAM_COUNT = 
"maxFormParameterCount";  
         
     private FormUtils() {
         

Modified: 
cxf/branches/2.5.x-fixes/systests/jaxrs/src/test/resources/jaxrs/WEB-INF/beans.xml
URL: 
http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/systests/jaxrs/src/test/resources/jaxrs/WEB-INF/beans.xml?rev=1300533&r1=1300532&r2=1300533&view=diff
==============================================================================
--- 
cxf/branches/2.5.x-fixes/systests/jaxrs/src/test/resources/jaxrs/WEB-INF/beans.xml
 (original)
+++ 
cxf/branches/2.5.x-fixes/systests/jaxrs/src/test/resources/jaxrs/WEB-INF/beans.xml
 Wed Mar 14 13:11:18 2012
@@ -210,7 +210,7 @@ http://cxf.apache.org/schemas/core.xsd";>
       </bean>
     </jaxrs:inInterceptors>
     <jaxrs:properties>
-       <entry key="org.apache.cxf.form.maxParameterCount" value="2"/>
+       <entry key="maxFormParameterCount" value="2"/>
     </jaxrs:properties>
         
   </jaxrs:server>
@@ -221,7 +221,7 @@ http://cxf.apache.org/schemas/core.xsd";>
       <ref bean="serviceBean" />
     </jaxrs:serviceBeans>                 
     <jaxrs:properties>
-       <entry key="org.apache.cxf.staxutils.innerElementCountThreshold" 
value="2"/>
+       <entry key="depthInnerElementCountThreshold" value="2"/>
     </jaxrs:properties>
         
   </jaxrs:server>


Reply via email to