cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1153547 - /cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapMessage.java
Date Wed, 03 Aug 2011 15:44:35 GMT
Author: dkulp
Date: Wed Aug  3 15:44:34 2011
New Revision: 1153547

URL: http://svn.apache.org/viewvc?rev=1153547&view=rev
Log:
Add the Version object to the message so it can be queried from the
context.

Modified:
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapMessage.java

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapMessage.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapMessage.java?rev=1153547&r1=1153546&r2=1153547&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapMessage.java
(original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapMessage.java
Wed Aug  3 15:44:34 2011
@@ -35,18 +35,19 @@ public class SoapMessage extends Message
 
     public SoapMessage(Message message) {
         super(message);
-        version = Soap11.getInstance();
+        setVersion(Soap11.getInstance());
     }
     public SoapMessage(SoapVersion ver) {
         super();
-        version = ver;
+        setVersion(ver);
     }
 
     public SoapVersion getVersion() {
         return version;
     }
 
-    public void setVersion(SoapVersion v) {
+    public final void setVersion(SoapVersion v) {
+        super.put(SoapVersion.class, v);
         this.version = v;
     }
     



Mime
View raw message