Author: azeez
Date: Mon Jan 22 06:25:50 2007
New Revision: 498619

URL: http://svn.apache.org/viewvc?view=rev&rev=498619
Log:
Applying patch for WSCOMMONS-156 & WSCOMMONS-157 sent by sumedha.

Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPHeaderBlock.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonImpl.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/factory/DOMSOAPFactory.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPHeaderBlock.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPHeaderBlock.java?view=diff&rev=498619&r1=498618&r2=498619
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPHeaderBlock.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPHeaderBlock.java
 Mon Jan 22 06:25:50 2007
@@ -84,6 +84,23 @@
      * particular header block must explicitly say that he processesd the 
header
      * by calling setProcessed()
      */
-    public abstract void setProcessed();
-
+    public abstract void setProcessed();
+    
+    
+    /**
+     * Sets the relay attribute for this SOAPHeaderBlock to be either true or 
false.
+     * The SOAP relay attribute is set to true to indicate that the SOAP 
header block must be 
+     * relayed by any node that is targeted by the header block but not 
actually process it.
+     *  
+     * @param relay a <CODE>boolean</CODE> giving the value to be set
+     */
+    public abstract void setRelay(boolean relay);
+ 
+    /**
+     * Returns the relay  status associated with this <CODE>
+     * SOAPHeaderBlock</CODE> object.
+     *
+     * @return a <CODE>boolean</CODE> giving the relay status
+     */
+    public abstract boolean getRelay();
 }

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java?view=diff&rev=498619&r1=498618&r2=498619
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java
 Mon Jan 22 06:25:50 2007
@@ -15,6 +15,14 @@
  */
 package org.apache.axiom.om.impl.dom;
 
+import java.io.OutputStream;
+import java.io.Writer;
+import java.util.Hashtable;
+import java.util.Map;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
 import org.apache.axiom.om.OMContainer;
 import org.apache.axiom.om.OMException;
 import org.apache.axiom.om.OMFactory;
@@ -31,14 +39,6 @@
 import org.w3c.dom.NodeList;
 import org.w3c.dom.UserDataHandler;
 
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamWriter;
-
-import java.io.OutputStream;
-import java.io.Writer;
-import java.util.Hashtable;
-import java.util.Map;
-
 public abstract class NodeImpl implements Node, NodeList, OMNodeEx, Cloneable {
 
     /**
@@ -531,9 +531,13 @@
         throw new UnsupportedOperationException("TODO");
     }
 
-    public boolean isSameNode(Node arg0) {
-        // TODO TODO
-        throw new UnsupportedOperationException("TODO");
+    public boolean isSameNode(Node node) {
+        // TODO : check
+        if(this == node){
+               return true;
+        }else{
+               return false;
+        }
     }
 
     public String lookupPrefix(String arg0) {
@@ -551,11 +555,213 @@
         throw new UnsupportedOperationException("TODO");
     }
 
-    public boolean isEqualNode(Node arg0) {
-        // TODO TODO
-        throw new UnsupportedOperationException("TODO");
+    /**
+     * Tests whether two nodes are equal.
+     * <br>This method tests for equality of nodes, not sameness (i.e., 
+     * whether the two nodes are references to the same object) which can be 
+     * tested with <code>Node.isSameNode()</code>. All nodes that are the 
+     * same will also be equal, though the reverse may not be true.
+     * <br>Two nodes are equal if and only if the following conditions are 
+     * satisfied: 
+     * <ul>
+     * <li>The two nodes are of the same type.
+     * </li>
+     * <li>The following string 
+     * attributes are equal: <code>nodeName</code>, <code>localName</code>, 
+     * <code>namespaceURI</code>, <code>prefix</code>, <code>nodeValue</code>
+     * . This is: they are both <code>null</code>, or they have the same 
+     * length and are character for character identical.
+     * </li>
+     * <li>The 
+     * <code>attributes</code> <code>NamedNodeMaps</code> are equal. This 
+     * is: they are both <code>null</code>, or they have the same length and 
+     * for each node that exists in one map there is a node that exists in 
+     * the other map and is equal, although not necessarily at the same 
+     * index.
+     * </li>
+     * <li>The <code>childNodes</code> <code>NodeLists</code> are equal. 
+     * This is: they are both <code>null</code>, or they have the same 
+     * length and contain equal nodes at the same index. Note that 
+     * normalization can affect equality; to avoid this, nodes should be 
+     * normalized before being compared.
+     * </li>
+     * </ul> 
+     * <br>For two <code>DocumentType</code> nodes to be equal, the following 
+     * conditions must also be satisfied: 
+     * <ul>
+     * <li>The following string attributes 
+     * are equal: <code>publicId</code>, <code>systemId</code>, 
+     * <code>internalSubset</code>.
+     * </li>
+     * <li>The <code>entities</code> 
+     * <code>NamedNodeMaps</code> are equal.
+     * </li>
+     * <li>The <code>notations</code> 
+     * <code>NamedNodeMaps</code> are equal.
+     * </li>
+     * </ul> 
+     * <br>On the other hand, the following do not affect equality: the 
+     * <code>ownerDocument</code>, <code>baseURI</code>, and 
+     * <code>parentNode</code> attributes, the <code>specified</code> 
+     * attribute for <code>Attr</code> nodes, the <code>schemaTypeInfo</code>
+     *  attribute for <code>Attr</code> and <code>Element</code> nodes, the 
+     * <code>Text.isElementContentWhitespace</code> attribute for 
+     * <code>Text</code> nodes, as well as any user data or event listeners 
+     * registered on the nodes. 
+     * <p ><b>Note:</b>  As a general rule, anything not mentioned in the 
+     * description above is not significant in consideration of equality 
+     * checking. Note that future versions of this specification may take 
+     * into account more attributes and implementations conform to this 
+     * specification are expected to be updated accordingly. 
+     * @param arg The node to compare equality with.
+     * @return Returns <code>true</code> if the nodes are equal, 
+     *   <code>false</code> otherwise.
+     * @since DOM Level 3
+     */
+    
+    //TODO : sumedha, complete
+    public boolean isEqualNode(Node node) {
+       final boolean equal = true;
+       final boolean notEqual = false;
+       if(this.getNodeType() != node.getNodeType()){
+               return notEqual; 
+       }
+       if (checkStringAttributeEquality(node))
+       {
+               if(checkNamedNodeMapEquality(node))
+               {
+                       
+               }else{
+                       return notEqual;
+               }
+       }else{
+               return notEqual;
+       }
+       return equal;
+    }
+
+    private boolean checkStringAttributeEquality(Node node){
+       final boolean equal = true;
+       final boolean notEqual = false;
+
+       // null     not-null  -> true
+       // not-null null      -> true
+       // null     null      -> false
+       // not-null not-null  -> false
+       
+       //NodeName
+       if(node.getNodeName() == null ^ this.getNodeName() == null){
+               return notEqual;
+       }else{
+               if(node.getNodeName() == null){
+                       //This means both are null.do nothing
+               }else{
+               if(!(node.getNodeName().equals(this.getNodeName()))){
+                       return notEqual;
+               }
+               }
+       }
+
+       //localName
+       if(node.getLocalName() == null ^ this.getLocalName() == null){
+               return notEqual;
+       }else{
+               if(node.getLocalName() == null){
+                       //This means both are null.do nothing
+               }else{
+               if(!(node.getLocalName().equals(this.getLocalName()))){
+                       return notEqual;
+               }
+               }
+       }
+       
+       //namespaceURI
+       if(node.getNamespaceURI() == null ^ this.getNamespaceURI() == null){
+               return notEqual;
+       }else{
+               if(node.getNamespaceURI() == null){
+                       //This means both are null.do nothing
+               }else{
+               if(!(node.getNamespaceURI().equals(this.getNamespaceURI()))){
+                       return notEqual;
+               }
+               }
+       }
+       
+       //prefix
+       if(node.getPrefix() == null ^ this.getPrefix() == null){
+               return notEqual;
+       }else{
+               if(node.getPrefix() == null){
+                       //This means both are null.do nothing                   
        
+               }else{
+               if(!(node.getPrefix().equals(this.getPrefix()))){
+                       return notEqual;
+               }
+               }
+       }
+       
+       //nodeValue
+       if(node.getNodeValue() == null ^ this.getNodeValue() == null){
+               return notEqual;
+       }else{
+               if(node.getNodeValue() == null){
+                       //This means both are null.do nothing                   
        
+               }else{
+               if(!(node.getNodeValue().equals(this.getNodeValue()))){
+                       return notEqual;
+               }
+               }
+       }
+       return equal;
     }
-
+    
+    private boolean checkNamedNodeMapEquality(Node node){
+       final boolean equal = true;
+       final boolean notEqual = false;
+       if(node.getAttributes() == null ^ this.getAttributes() == null){
+               return notEqual;
+       }
+       NamedNodeMap thisNamedNodeMap = this.getAttributes();
+       NamedNodeMap nodeNamedNodeMap = node.getAttributes();
+       
+       // null     not-null  -> true
+       // not-null null      -> true
+       // null     null      -> false
+       // not-null not-null  -> false
+       
+       if(thisNamedNodeMap == null ^ nodeNamedNodeMap == null){
+               return notEqual;
+       }else{
+               if(thisNamedNodeMap == null){
+                       //This means both are null.do nothing
+               }else{
+               if(thisNamedNodeMap.getLength() != 
nodeNamedNodeMap.getLength()){
+                       return notEqual;
+               }else{
+                       //they have the same length and for each node that 
exists in one map 
+                       //there is a node that exists in the other map and is 
equal, although 
+                       //not necessarily at the same index.
+                       int itemCount = thisNamedNodeMap.getLength();
+                       for (int a = 0; a < itemCount; a++) {
+                               NodeImpl thisNode = 
(NodeImpl)thisNamedNodeMap.item(a);
+                               NodeImpl tmpNode = 
(NodeImpl)nodeNamedNodeMap.getNamedItem(thisNode.getNodeName());
+                               if(tmpNode == null){
+                                       //i.e. no corresponding node
+                                       return notEqual;
+                               }else {
+                                       NodeImpl node1 = thisNode;
+                                       if(!(node1.isEqualNode(tmpNode))){
+                                               return notEqual;
+                                       }
+                               }
+                               }
+               }
+               }
+       }
+       return equal;
+    }
+    
     public Object getFeature(String arg0, String arg1) {
         // TODO TODO
         throw new UnsupportedOperationException("TODO");

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonImpl.java?view=diff&rev=498619&r1=498618&r2=498619
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonImpl.java
 Mon Jan 22 06:25:50 2007
@@ -16,7 +16,12 @@
 
 package org.apache.axiom.soap.impl.dom;
 
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
 import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMNode;
 import org.apache.axiom.om.OMXMLParserWrapper;
 import org.apache.axiom.om.util.ElementHelper;
 import org.apache.axiom.soap.SOAP12Constants;
@@ -26,8 +31,6 @@
 import org.apache.axiom.soap.SOAPFaultText;
 import org.apache.axiom.soap.SOAPProcessingException;
 
-import java.util.List;
-
 public abstract class SOAPFaultReasonImpl extends SOAPElement implements
         SOAPFaultReason {
     protected SOAPFaultText text;
@@ -67,8 +70,16 @@
     }
 
     public List getAllSoapTexts() {
-        //TODO Ruchith
-        throw new UnsupportedOperationException();
+        //TODO Ruchith check
+       List faultTexts = new ArrayList();
+        Iterator childrenIter = this.getChildren();
+        while (childrenIter.hasNext()) {
+            OMNode node = (OMNode) childrenIter.next();
+            if (node.getType() == OMNode.ELEMENT_NODE && (node instanceof 
SOAPFaultTextImpl)) {
+                faultTexts.add(((SOAPFaultTextImpl) node));
+            }
+        }
+        return faultTexts;
     }
 
     public SOAPFaultText getSOAPFaultText(String language) {

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java?view=diff&rev=498619&r1=498618&r2=498619
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java
 Mon Jan 22 06:25:50 2007
@@ -114,11 +114,19 @@
         Collection elements = new ArrayList();
         for (Iterator iter = examineAllHeaderBlocks(); iter.hasNext();) {
             SOAPHeaderBlock headerBlock = (SOAPHeaderBlock) iter.next();
+            /*
             if (headerBlock.getRole() == null ||
                 headerBlock.getRole().trim().length() == 0 ||
                 headerBlock.getRole().equals(paramRole)) {
                 elements.add(headerBlock);
             }
+            */
+            if (headerBlock.getRole() != null &&
+                    headerBlock.getRole().trim().length() > 0 &&
+                    headerBlock.getRole().equals(paramRole)) {
+                    elements.add(headerBlock);
+            }
+            
         }
         return elements.iterator();
     }

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/factory/DOMSOAPFactory.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/factory/DOMSOAPFactory.java?view=diff&rev=498619&r1=498618&r2=498619
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/factory/DOMSOAPFactory.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/factory/DOMSOAPFactory.java
 Mon Jan 22 06:25:50 2007
@@ -38,6 +38,7 @@
 import org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl;
 import org.apache.axiom.soap.impl.dom.SOAPMessageImpl;
 import org.apache.axiom.soap.impl.dom.soap11.SOAP11FaultDetailImpl;
+import org.apache.axiom.soap.impl.dom.soap12.SOAP12FaultImpl;
 
 public class DOMSOAPFactory extends OMDOMFactory implements SOAPFactory {
 
@@ -92,8 +93,8 @@
        }
 
        public SOAPFault createSOAPFault(SOAPBody parent) throws 
SOAPProcessingException {
-               throw new UnsupportedOperationException();
-       }
+        return new SOAP12FaultImpl(parent,this);
+       }       
 
        public SOAPFault createSOAPFault(SOAPBody parent, OMXMLParserWrapper 
builder) {
                throw new UnsupportedOperationException();
@@ -220,8 +221,11 @@
         throw new UnsupportedOperationException("TODO");
     }
 
+    /**
+     * @see SOAP11Factory,SOAP12Factory
+     */
     public SOAPFault createSOAPFault() throws SOAPProcessingException {
-        throw new UnsupportedOperationException("TODO");
+        return null;
     }
 
     public SOAPBody createSOAPBody() throws SOAPProcessingException {

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java?view=diff&rev=498619&r1=498618&r2=498619
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
 Mon Jan 22 06:25:50 2007
@@ -231,5 +231,10 @@
         return new NamespaceImpl(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                 SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
     }
+
+       public SOAPFault createSOAPFault() throws SOAPProcessingException {
+               return new 
SOAP11FaultImpl(this.getDefaultEnvelope().getBody(),this);
+       }
+    
     
 }

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java?view=diff&rev=498619&r1=498618&r2=498619
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java
 Mon Jan 22 06:25:50 2007
@@ -79,6 +79,17 @@
                 SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
     }
 
+    //TODO : implement
+    public void setRelay(boolean relay) {
+       throw new UnsupportedOperationException("Not supported for SOAP 1.1");
+    }
+
+    //TODO : implement
+    public boolean getRelay() {
+       throw new UnsupportedOperationException("Not supported for SOAP 1.1");
+    }
+
+    
     public void setMustUnderstand(boolean mustUnderstand) {
         setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
                 mustUnderstand ? "1" : "0",

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java?view=diff&rev=498619&r1=498618&r2=498619
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
 Mon Jan 22 06:25:50 2007
@@ -37,7 +37,7 @@
 import org.apache.axiom.soap.SOAPProcessingException;
 import org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl;
 import org.apache.axiom.soap.impl.dom.factory.DOMSOAPFactory;
-import org.apache.axiom.soap.impl.dom.soap11.SOAP11HeaderBlockImpl;
+import org.apache.axiom.soap.impl.dom.soap11.SOAP11FaultImpl;
 
 public class SOAP12Factory extends DOMSOAPFactory {
        
@@ -212,5 +212,10 @@
 
         return env;
     }
+
+       public SOAPFault createSOAPFault() throws SOAPProcessingException {
+               return new 
SOAP12FaultImpl(this.getDefaultEnvelope().getBody(),this);
+       }
+    
 
 }

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java?view=diff&rev=498619&r1=498618&r2=498619
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java
 Mon Jan 22 06:25:50 2007
@@ -126,4 +126,17 @@
         return false;
 
     }
+    
+    public void setRelay(boolean relay) {
+        setAttribute(SOAP12Constants.SOAP_RELAY,
+                String.valueOf(relay),
+                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+    }    
+
+    public boolean getRelay() {
+        return Boolean.valueOf(getAttribute(SOAP12Constants.SOAP_RELAY,
+                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI)).booleanValue();
+
+    }
+    
 }

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java?view=diff&rev=498619&r1=498618&r2=498619
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java
 Mon Jan 22 06:25:50 2007
@@ -135,5 +135,15 @@
         }
         return false;
 
+    }
+    
+      //TODO : implement
+    public void setRelay(boolean relay) {
+       throw new UnsupportedOperationException("Not supported for SOAP 1.1");
+    }
+
+    //TODO : implement
+    public boolean getRelay() {
+       throw new UnsupportedOperationException("Not supported for SOAP 1.1");
     }
 }

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java?view=diff&rev=498619&r1=498618&r2=498619
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java
 Mon Jan 22 06:25:50 2007
@@ -133,5 +133,15 @@
         }
         return false;
 
+    }
+    
+    //TODO : implement
+    public void setRelay(boolean relay) {
+       throw new UnsupportedOperationException("Not supported for SOAP 1.1");
+    }
+
+    //TODO : implement
+    public boolean getRelay() {
+       throw new UnsupportedOperationException("Not supported for SOAP 1.1");
     }
 }



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

Reply via email to