chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1556207 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/AbstractLocalService.java
Date Tue, 07 Jan 2014 13:09:49 GMT
Author: fmui
Date: Tue Jan  7 13:09:48 2014
New Revision: 1556207

URL: http://svn.apache.org/r1556207
Log:
changed LocalCallContext into a MutableCallContext

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/AbstractLocalService.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/local/AbstractLocalService.java?rev=1556207&r1=1556206&r2=1556207&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/AbstractLocalService.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/AbstractLocalService.java
Tue Jan  7 13:09:48 2014
@@ -31,6 +31,7 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.server.CallContext;
 import org.apache.chemistry.opencmis.commons.server.CmisService;
 import org.apache.chemistry.opencmis.commons.server.CmisServiceFactory;
+import org.apache.chemistry.opencmis.commons.server.MutableCallContext;
 
 /**
  * Base class for all local clients.
@@ -93,7 +94,7 @@ public abstract class AbstractLocalServi
     /**
      * Simple {@link CallContext} implementation.
      */
-    static class LocalCallContext implements CallContext {
+    static class LocalCallContext implements MutableCallContext {
 
         private final Map<String, Object> contextMap = new HashMap<String, Object>();
 
@@ -158,5 +159,13 @@ public abstract class AbstractLocalServi
         public long getMaxContentSize() {
             return -1;
         }
+
+		public void put(String key, Object value) {
+			contextMap.put(key, value);
+		}
+
+		public Object remove(String key) {
+			return contextMap.remove(key);
+		}
     }
 }



Mime
View raw message