cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r822500 - in /cxf/trunk: api/src/main/java/org/apache/cxf/ws/addressing/AddressingProperties.java rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingPropertiesImpl.java
Date Tue, 06 Oct 2009 21:11:52 GMT
Author: dkulp
Date: Tue Oct  6 21:11:52 2009
New Revision: 822500

URL: http://svn.apache.org/viewvc?rev=822500&view=rev
Log:
[CXF-2308] add a setTo(org.apache.cxf.ws.addressing.AttributedURIType)
method

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/ws/addressing/AddressingProperties.java
    cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingPropertiesImpl.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/ws/addressing/AddressingProperties.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/ws/addressing/AddressingProperties.java?rev=822500&r1=822499&r2=822500&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/ws/addressing/AddressingProperties.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/ws/addressing/AddressingProperties.java Tue
Oct  6 21:11:52 2009
@@ -41,6 +41,12 @@
      * @param epr new value for To property
      */
     void setTo(EndpointReferenceType epr);
+    
+    /**
+     * Mutator for the <b>To</b> property.
+     * @param epr new value for To property
+     */
+    void setTo(AttributedURIType epr);
 
     /**
      * Accessor for the <b>From</b> property.

Modified: cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingPropertiesImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingPropertiesImpl.java?rev=822500&r1=822499&r2=822500&view=diff
==============================================================================
--- cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingPropertiesImpl.java
(original)
+++ cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingPropertiesImpl.java
Tue Oct  6 21:11:52 2009
@@ -30,6 +30,7 @@
  */
 public class AddressingPropertiesImpl implements AddressingProperties {
     private EndpointReferenceType to;
+    private AttributedURIType toURIType;
     private EndpointReferenceType from;
     private AttributedURIType messageID;
     private EndpointReferenceType replyTo;
@@ -65,17 +66,27 @@
      * @return To property
      */
     public AttributedURIType getTo() {
-        return null != to ? to.getAddress() : null;
+        if (toURIType == null) {
+            return null != to ? to.getAddress() : null;
+        }
+        return toURIType;
     }
     
     /**
      * Mutator for the <b>To</b> property.
      * @param iri new value for To property
      */
+    public void setTo(AttributedURIType t) {
+        toURIType = t;
+    }
+    /**
+     * Mutator for the <b>To</b> property.
+     * @param iri new value for To property
+     */
     public void setTo(EndpointReferenceType epr) {
         to = epr;
+        toURIType = null;
     }
-
     /**
      * Accessor for the <b>From</b> property.
      * @return current value of From property



Mime
View raw message