axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r330004 - in /webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2: om/impl/dom/AttrImpl.java om/impl/dom/NodeImpl.java soap/impl/dom/SOAPBodyImpl.java soap/impl/dom/SOAPFaultDetailImpl.java soap/impl/dom/factory/DOMSOAPFactory.java
Date Tue, 01 Nov 2005 07:56:38 GMT
Author: ruchithf
Date: Mon Oct 31 23:56:24 2005
New Revision: 330004

URL: http://svn.apache.org/viewcvs?rev=330004&view=rev
Log:
Adding the org.apache.axis2.soap.impl.dom.soap11 and soap12 stuff 


Modified:
    webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/om/impl/dom/AttrImpl.java
    webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/om/impl/dom/NodeImpl.java
    webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/SOAPBodyImpl.java
    webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/SOAPFaultDetailImpl.java
    webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/factory/DOMSOAPFactory.java

Modified: webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/om/impl/dom/AttrImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/om/impl/dom/AttrImpl.java?rev=330004&r1=330003&r2=330004&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/om/impl/dom/AttrImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/om/impl/dom/AttrImpl.java
Mon Oct 31 23:56:24 2005
@@ -334,4 +334,24 @@
         return (this.namespace == null)?null:this.namespace.getPrefix();
     }
 
+	public Node cloneNode(boolean deep) {
+
+        AttrImpl clone = (AttrImpl) super.cloneNode(deep);
+
+        // take care of case where there are kids
+    	if (!this.hasChildNodes()) {
+
+            clone.attrValue = null;
+
+            for (Node child = (Node) attrValue; child != null; child = child.getNextSibling())
{
+                 clone.appendChild(child.cloneNode(true));
+            }
+        }
+        clone.isSpecified(true);
+        return clone;
+	}
+    
+    
+    
+
 }

Modified: webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/om/impl/dom/NodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/om/impl/dom/NodeImpl.java?rev=330004&r1=330003&r2=330004&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/om/impl/dom/NodeImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/om/impl/dom/NodeImpl.java
Mon Oct 31 23:56:24 2005
@@ -195,9 +195,20 @@
     }
  
     public Node cloneNode(boolean deep) {
-    	throw new UnsupportedOperationException("TODO");
-    	//TODO
-    } // cloneNode(boolean):Node
+    	NodeImpl newnode;
+    	try {
+            newnode = (NodeImpl)clone();
+    	}
+    	catch (CloneNotSupportedException e) {
+            throw new RuntimeException("**Internal Error**" + e);
+    	}
+    	newnode.ownerNode      = this.ownerNode;
+        newnode.isOwned(false);
+        
+        newnode.isReadonly(false);
+        
+        return newnode;
+    } 
 
 
 	/*

Modified: webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/SOAPBodyImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/SOAPBodyImpl.java?rev=330004&r1=330003&r2=330004&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/SOAPBodyImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/SOAPBodyImpl.java
Mon Oct 31 23:56:24 2005
@@ -28,8 +28,6 @@
 import org.apache.axis2.soap.SOAPEnvelope;
 import org.apache.axis2.soap.SOAPFault;
 import org.apache.axis2.soap.SOAPProcessingException;
-import org.apache.axis2.soap.impl.llom.SOAPElement;
-import org.apache.axis2.soap.impl.llom.SOAPEnvelopeImpl;
 
 public abstract class SOAPBodyImpl extends SOAPElement implements SOAPBody,
 		OMConstants {

Modified: webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/SOAPFaultDetailImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/SOAPFaultDetailImpl.java?rev=330004&r1=330003&r2=330004&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/SOAPFaultDetailImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/SOAPFaultDetailImpl.java
Mon Oct 31 23:56:24 2005
@@ -24,7 +24,6 @@
 import org.apache.axis2.soap.SOAPFault;
 import org.apache.axis2.soap.SOAPFaultDetail;
 import org.apache.axis2.soap.SOAPProcessingException;
-import org.apache.axis2.soap.impl.llom.SOAPElement;
 
 import java.util.Iterator;
 

Modified: webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/factory/DOMSOAPFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/factory/DOMSOAPFactory.java?rev=330004&r1=330003&r2=330004&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/factory/DOMSOAPFactory.java
(original)
+++ webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/soap/impl/dom/factory/DOMSOAPFactory.java
Mon Oct 31 23:56:24 2005
@@ -34,182 +34,162 @@
 import org.apache.axis2.soap.SOAPHeaderBlock;
 import org.apache.axis2.soap.SOAPMessage;
 import org.apache.axis2.soap.SOAPProcessingException;
+import org.apache.axis2.soap.impl.dom.SOAPEnvelopeImpl;
+import org.apache.axis2.soap.impl.dom.SOAPMessageImpl;
 
 public class DOMSOAPFactory extends OMDOMFactory implements SOAPFactory {
 
 	public SOAPMessage createSOAPMessage(OMXMLParserWrapper builder) {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		return new SOAPMessageImpl(builder);
 	}
 
 	public SOAPMessage createSOAPMessage(SOAPEnvelope envelope, OMXMLParserWrapper parserWrapper)
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		return new SOAPMessageImpl(envelope, parserWrapper);
 	}
 
 	public SOAPEnvelope createSOAPEnvelope(OMXMLParserWrapper builder) {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		return new SOAPEnvelopeImpl(builder, this);
 	}
 
 	public SOAPEnvelope createSOAPEnvelope() throws SOAPProcessingException {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPHeader createSOAPHeader(SOAPEnvelope envelope) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPHeader createSOAPHeader(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader
parent) throws SOAPProcessingException {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader
parent, OMXMLParserWrapper builder) throws SOAPProcessingException {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFault createSOAPFault(SOAPBody parent, Exception e) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFault createSOAPFault(SOAPBody parent) throws SOAPProcessingException {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFault createSOAPFault(SOAPBody parent, OMXMLParserWrapper builder) {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPBody createSOAPBody(SOAPEnvelope envelope) throws SOAPProcessingException {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPBody createSOAPBody(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultCode createSOAPFaultCode(SOAPFault parent) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultCode createSOAPFaultCode(SOAPFault parent, OMXMLParserWrapper builder) {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent, OMXMLParserWrapper builder)
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent, OMXMLParserWrapper builder)
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent, OMXMLParserWrapper
builder) {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent, OMXMLParserWrapper
builder) {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultReason createSOAPFaultReason(SOAPFault parent) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultReason createSOAPFaultReason(SOAPFault parent, OMXMLParserWrapper builder)
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent, OMXMLParserWrapper builder)
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultNode createSOAPFaultNode(SOAPFault parent) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultNode createSOAPFaultNode(SOAPFault parent, OMXMLParserWrapper builder) {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultRole createSOAPFaultRole(SOAPFault parent) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultRole createSOAPFaultRole(SOAPFault parent, OMXMLParserWrapper builder) {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent) throws SOAPProcessingException
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent, OMXMLParserWrapper builder)
{
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+		throw new UnsupportedOperationException();
 	}
 
 	public SOAPEnvelope getDefaultFaultEnvelope() throws SOAPProcessingException {
-		//TODO
-		throw new UnsupportedOperationException("TODO");
+        SOAPEnvelope defaultEnvelope = getDefaultEnvelope();
+        SOAPFault fault = createSOAPFault(defaultEnvelope.getBody());
+
+        SOAPFaultCode faultCode = createSOAPFaultCode(fault);
+        SOAPFaultValue value = createSOAPFaultValue(faultCode);
+
+        SOAPFaultReason reason = createSOAPFaultReason(fault);
+        SOAPFaultText faultText = createSOAPFaultText(reason);
+
+        SOAPFaultNode faultNode = createSOAPFaultNode(fault);
+        SOAPFaultRole faultRole = createSOAPFaultRole(fault);
+        SOAPFaultDetail faultDetail = createSOAPFaultDetail(fault);
+
+        return defaultEnvelope;
 	}
 
 }



Mime
View raw message