chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1763258 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/CXFPortProvider.java
Date Tue, 04 Oct 2016 10:52:02 GMT
Author: fmui
Date: Tue Oct  4 10:52:02 2016
New Revision: 1763258

URL: http://svn.apache.org/viewvc?rev=1763258&view=rev
Log:
CMIS-1000: attempt to fix SOAP header issue

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/CXFPortProvider.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/CXFPortProvider.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/CXFPortProvider.java?rev=1763258&r1=1763257&r2=1763258&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/CXFPortProvider.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/CXFPortProvider.java
Tue Oct  4 10:52:02 2016
@@ -18,7 +18,7 @@
  */
 package org.apache.chemistry.opencmis.client.bindings.spi.webservices;
 
-import java.util.Collections;
+import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
 
@@ -117,10 +117,9 @@ public class CXFPortProvider extends Abs
                 // SOAP header
                 Element soapHeader = authProvider.getSOAPHeaders(portObject);
                 if (soapHeader != null) {
-                    portObject.getRequestContext().put(
-                            Header.HEADER_LIST,
-                            Collections.singletonList(new Header(new QName(soapHeader.getNamespaceURI(),
soapHeader
-                                    .getLocalName()), soapHeader)));
+                    List<Header> soapHeaderList = new ArrayList<>(2);
+                    soapHeaderList.add(new Header(new QName(soapHeader.getNamespaceURI(),
soapHeader.getLocalName()), soapHeader));
+                    portObject.getRequestContext().put(Header.HEADER_LIST, soapHeaderList);
                 }
 
                 // HTTP header



Mime
View raw message