chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1042635 - /incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.java
Date Mon, 06 Dec 2010 13:29:36 GMT
Author: fmui
Date: Mon Dec  6 13:29:35 2010
New Revision: 1042635

URL: http://svn.apache.org/viewvc?rev=1042635&view=rev
Log:
enabled session parameter auth switches

Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.java

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.java?rev=1042635&r1=1042634&r2=1042635&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.java
Mon Dec  6 13:29:35 2010
@@ -98,7 +98,9 @@ public final class CmisBindingFactory {
         if (!sessionParameters.containsKey(SessionParameter.AUTHENTICATION_PROVIDER_CLASS))
{
             sessionParameters.put(SessionParameter.AUTHENTICATION_PROVIDER_CLASS, STANDARD_AUTHENTICATION_PROVIDER);
         }
-        sessionParameters.put(SessionParameter.AUTH_HTTP_BASIC, "true");
+        if (!sessionParameters.containsKey(SessionParameter.AUTH_HTTP_BASIC)) {
+            sessionParameters.put(SessionParameter.AUTH_HTTP_BASIC, "true");
+        }
         sessionParameters.put(SessionParameter.AUTH_SOAP_USERNAMETOKEN, "false");
         addDefaultParameters(sessionParameters);
 
@@ -117,8 +119,12 @@ public final class CmisBindingFactory {
         if (!sessionParameters.containsKey(SessionParameter.AUTHENTICATION_PROVIDER_CLASS))
{
             sessionParameters.put(SessionParameter.AUTHENTICATION_PROVIDER_CLASS, STANDARD_AUTHENTICATION_PROVIDER);
         }
-        sessionParameters.put(SessionParameter.AUTH_HTTP_BASIC, "true");
-        sessionParameters.put(SessionParameter.AUTH_SOAP_USERNAMETOKEN, "true");
+        if (!sessionParameters.containsKey(SessionParameter.AUTH_SOAP_USERNAMETOKEN)) {
+            sessionParameters.put(SessionParameter.AUTH_SOAP_USERNAMETOKEN, "true");
+        }
+        if (!sessionParameters.containsKey(SessionParameter.AUTH_HTTP_BASIC)) {
+            sessionParameters.put(SessionParameter.AUTH_HTTP_BASIC, "true");
+        }
         addDefaultParameters(sessionParameters);
 
         check(sessionParameters, SessionParameter.WEBSERVICES_ACL_SERVICE);



Mime
View raw message