You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2011/12/16 12:34:45 UTC
svn commit: r1215095 -
/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java
Author: fmui
Date: Fri Dec 16 11:34:45 2011
New Revision: 1215095
URL: http://svn.apache.org/viewvc?rev=1215095&view=rev
Log:
CMIS-416: set the Web Services chunk size to 64k-1
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java?rev=1215095&r1=1215094&r2=1215095&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java Fri Dec 16 11:34:45 2011
@@ -77,7 +77,7 @@ public abstract class AbstractPortProvid
public static final String POLICY_SERVICE = "PolicyService";
public static final String ACL_SERVICE = "ACLService";
- protected static final int CHUNK_SIZE = 64 * 1024;
+ protected static final int CHUNK_SIZE = (64 * 1024) - 1;
private BindingSession session;
protected boolean useCompression;
@@ -295,7 +295,7 @@ public abstract class AbstractPortProvid
if (httpHeaders == null) {
httpHeaders = new HashMap<String, List<String>>();
}
-
+
// CMIS client header
httpHeaders.put("X-CMIS-Client", Collections.singletonList(ClientVersion.OPENCMIS_CLIENT));
@@ -313,10 +313,10 @@ public abstract class AbstractPortProvid
if (acceptLanguage != null) {
httpHeaders.put("Accept-Language", Collections.singletonList(acceptLanguage));
}
-
+
((BindingProvider) portObject).getRequestContext().put(MessageContext.HTTP_REQUEST_HEADERS, httpHeaders);
}
-
+
/**
* Creates a port object.
*/