cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Updating the way JAX-RS filter properties are passed around
Date Tue, 25 Nov 2014 21:20:18 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes a3647e52b -> ada5a4024


Updating the way JAX-RS filter properties are passed around


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/ada5a402
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/ada5a402
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/ada5a402

Branch: refs/heads/2.7.x-fixes
Commit: ada5a40242cf6845f104c275520dede4b49e84f8
Parents: a3647e5
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Tue Nov 25 17:33:38 2014 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Tue Nov 25 21:19:49 2014 +0000

----------------------------------------------------------------------
 .../java/org/apache/cxf/jaxrs/impl/PropertyHolderFactory.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ada5a402/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/PropertyHolderFactory.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/PropertyHolderFactory.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/PropertyHolderFactory.java
index 4c414c3..b562d7d 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/PropertyHolderFactory.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/PropertyHolderFactory.java
@@ -50,7 +50,7 @@ public final class PropertyHolderFactory {
         
         public MessagePropertyHolder(Message m) {
             this.m = m;
-            this.props = CastUtils.cast((Map<?, ?>)m.get(PROPERTY_KEY));
+            this.props = CastUtils.cast((Map<?, ?>)m.getExchange().get(PROPERTY_KEY));
         }
         public Object getProperty(String name) {
             return props == null ? null : props.get(name);
@@ -66,7 +66,7 @@ public final class PropertyHolderFactory {
         public void setProperty(String name, Object value) {
             if (props == null) {
                 props = new HashMap<String, Object>();
-                m.put(PROPERTY_KEY, props);
+                m.getExchange().put(PROPERTY_KEY, props);
             }    
             if (value == null) {
                 removeProperty(name);


Mime
View raw message