Skip to content
Permalink
Browse files
Add getContextualPropertyKeys() to expose which keys are set.
git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1566559 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Dennis M. Sosnoski committed Feb 10, 2014
1 parent 9fcf83d commit 5d6e1bc5d3fb83a6457acc933e2e0675eae4d856
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
@@ -163,8 +163,12 @@ public Object getContextualProperty(String key) {
}
public void setContextualProperty(String key, Object v) {
message.setContextualProperty(key, v);
}
}

public Set<String> getContextualPropertyKeys() {
return message.getContextualPropertyKeys();
}

public void resetContextCache() {
message.resetContextCache();
}
@@ -241,4 +241,9 @@ public interface Message extends StringMap {

void resetContextCache();
void setContextualProperty(String key, Object v);

/**
* @return set of defined contextual property keys
*/
Set<String> getContextualPropertyKeys();
}
@@ -175,6 +175,9 @@ public Object getContextualProperty(String key) {
}
return contextCache.get(key);
}
public Set<String> getContextualPropertyKeys() {
return contextCache.keySet();
}

private void calcContextCache() {
Map<String, Object> o = new HashMap<String, Object>() {

0 comments on commit 5d6e1bc

Please sign in to comment.