Author: asankha
Date: Thu Nov  2 00:26:37 2006
New Revision: 470271

URL: http://svn.apache.org/viewvc?view=rev&rev=470271
Log:
fix invalid attribute key - should be policy

Modified:
    
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/EndpointSerializer.java

Modified: 
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/EndpointSerializer.java
URL: 
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/EndpointSerializer.java?view=diff&rev=470271&r1=470270&r2=470271
==============================================================================
--- 
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/EndpointSerializer.java
 (original)
+++ 
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/EndpointSerializer.java
 Thu Nov  2 00:26:37 2006
@@ -66,7 +66,27 @@
             handleException("Invalid Endpoint. Address is required");
         }
 
-        // TODO handle advanced options
+        if (endpt.isAddressingOn()) {
+            endpoint.addChild(fac.createOMElement("enableAddressing", synNS));
+        }
+
+        if (endpt.isReliableMessagingOn()) {
+            OMElement rm = fac.createOMElement("enableRM", synNS);
+            if (endpt.getWsRMPolicyKey() != null) {
+                rm.addAttribute(fac.createOMAttribute(
+                    "policy", nullNS, endpt.getWsRMPolicyKey()));
+            }
+            endpoint.addChild(rm);
+        }
+
+        if (endpt.isSecurityOn()) {
+            OMElement sec = fac.createOMElement("enableSec", synNS);
+            if (endpt.getWsSecPolicyKey() != null) {
+                sec.addAttribute(fac.createOMAttribute(
+                    "policy", nullNS, endpt.getWsSecPolicyKey()));
+            }
+            endpoint.addChild(sec);
+        }
 
         if (parent != null) {
             parent.addChild(endpoint);



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to