cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsosno...@apache.org
Subject svn commit: r1566559 - in /cxf/trunk/core/src/main/java/org/apache/cxf/message: AbstractWrappedMessage.java Message.java MessageImpl.java
Date Mon, 10 Feb 2014 10:09:12 GMT
Author: dsosnoski
Date: Mon Feb 10 10:09:12 2014
New Revision: 1566559

URL: http://svn.apache.org/r1566559
Log:
Add getContextualPropertyKeys() to expose which keys are set.

Modified:
    cxf/trunk/core/src/main/java/org/apache/cxf/message/AbstractWrappedMessage.java
    cxf/trunk/core/src/main/java/org/apache/cxf/message/Message.java
    cxf/trunk/core/src/main/java/org/apache/cxf/message/MessageImpl.java

Modified: cxf/trunk/core/src/main/java/org/apache/cxf/message/AbstractWrappedMessage.java
URL: http://svn.apache.org/viewvc/cxf/trunk/core/src/main/java/org/apache/cxf/message/AbstractWrappedMessage.java?rev=1566559&r1=1566558&r2=1566559&view=diff
==============================================================================
--- cxf/trunk/core/src/main/java/org/apache/cxf/message/AbstractWrappedMessage.java (original)
+++ cxf/trunk/core/src/main/java/org/apache/cxf/message/AbstractWrappedMessage.java Mon Feb
10 10:09:12 2014
@@ -163,8 +163,12 @@ public abstract class AbstractWrappedMes
     }  
     public void setContextualProperty(String key, Object v) {
         message.setContextualProperty(key, v);
-    }  
+    }
     
+    public Set<String> getContextualPropertyKeys() {
+        return message.getContextualPropertyKeys();
+    }
+
     public void resetContextCache() {
         message.resetContextCache();
     }

Modified: cxf/trunk/core/src/main/java/org/apache/cxf/message/Message.java
URL: http://svn.apache.org/viewvc/cxf/trunk/core/src/main/java/org/apache/cxf/message/Message.java?rev=1566559&r1=1566558&r2=1566559&view=diff
==============================================================================
--- cxf/trunk/core/src/main/java/org/apache/cxf/message/Message.java (original)
+++ cxf/trunk/core/src/main/java/org/apache/cxf/message/Message.java Mon Feb 10 10:09:12 2014
@@ -241,4 +241,9 @@ public interface Message extends StringM
     
     void resetContextCache();
     void setContextualProperty(String key, Object v);
+    
+    /**
+     * @return set of defined contextual property keys
+     */
+    Set<String> getContextualPropertyKeys();
 }

Modified: cxf/trunk/core/src/main/java/org/apache/cxf/message/MessageImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/core/src/main/java/org/apache/cxf/message/MessageImpl.java?rev=1566559&r1=1566558&r2=1566559&view=diff
==============================================================================
--- cxf/trunk/core/src/main/java/org/apache/cxf/message/MessageImpl.java (original)
+++ cxf/trunk/core/src/main/java/org/apache/cxf/message/MessageImpl.java Mon Feb 10 10:09:12
2014
@@ -175,6 +175,9 @@ public class MessageImpl extends StringM
         }
         return contextCache.get(key);
     }
+    public Set<String> getContextualPropertyKeys() {
+        return contextCache.keySet();
+    }
     
     private void calcContextCache() {
         Map<String, Object> o = new HashMap<String, Object>() {



Mime
View raw message