[jbossws-commits] JBossWS SVN: r15341 - in stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-7554/modules/core/src/main/java/org/jboss/ws/core: client and 1 other directory.
jbossws-commits at lists.jboss.org
jbossws-commits at lists.jboss.org
Wed Nov 23 11:20:22 EST 2011
Author: mmusaji
Date: 2011-11-23 11:20:21 -0500 (Wed, 23 Nov 2011)
New Revision: 15341
Modified:
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-7554/modules/core/src/main/java/org/jboss/ws/core/StubExt.java
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-7554/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java
Log:
[JBPAPP-7554] - Added PROPERTY_CHUNKED_ENCODING_SIZE and check to disable chunked encoding if value is set below 0
Modified: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-7554/modules/core/src/main/java/org/jboss/ws/core/StubExt.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-7554/modules/core/src/main/java/org/jboss/ws/core/StubExt.java 2011-11-23 06:46:47 UTC (rev 15340)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-7554/modules/core/src/main/java/org/jboss/ws/core/StubExt.java 2011-11-23 16:20:21 UTC (rev 15341)
@@ -71,6 +71,8 @@
static final String PROPERTY_AUTH_TYPE_WSSE = "org.jboss.ws.authType.wsse";
/** Enable MTOM on the stub */
static final String PROPERTY_MTOM_ENABLED= "org.jboss.ws.mtom.enabled";
+ /** HTTP chunk size */
+ static final String PROPERTY_CHUNKED_ENCODING_SIZE = "http://org.jboss.ws/http#chunksize";
/**
* Get the endpoint meta data for this stub
Modified: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-7554/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-7554/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java 2011-11-23 06:46:47 UTC (rev 15340)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-7554/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java 2011-11-23 16:20:21 UTC (rev 15341)
@@ -301,6 +301,7 @@
// Enable chunked encoding. This is the default size.
int chunkSizeValue = (chunkedLength != null ? chunkedLength : 1024);
+ boolean fastInfosetEnabled = false;
// Overwrite, through endpoint config
if (msgContext != null)
@@ -313,9 +314,19 @@
chunkSizeValue = Integer.valueOf(sizeValue);
if (epMetaData.isFeatureEnabled(FastInfosetFeature.class))
+ {
+ fastInfosetEnabled = true;
chunkSizeValue = 0;
+ }
}
+ if (fastInfosetEnabled == false)
+ {
+ String sizeValue = (String)callProps.get(StubExt.PROPERTY_CHUNKED_ENCODING_SIZE);
+ if (sizeValue != null)
+ chunkSizeValue = Integer.valueOf(sizeValue);
+ }
+
if (chunkSizeValue > 0)
{
clientConfig.put("chunkedLength", String.valueOf(chunkSizeValue));
More information about the jbossws-commits
mailing list