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 2014/01/07 14:09:49 UTC

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

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);
+		}
     }
 }