axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davidills...@apache.org
Subject svn commit: r509695 - /webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
Date Tue, 20 Feb 2007 18:15:12 GMT
Author: davidillsley
Date: Tue Feb 20 10:15:11 2007
New Revision: 509695

URL: http://svn.apache.org/viewvc?view=rev&rev=509695
Log:
Additional trace for AddressingOutHandler

Modified:
    webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java

Modified: webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java?view=diff&rev=509695&r1=509694&r2=509695
==============================================================================
--- webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
(original)
+++ webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
Tue Feb 20 10:15:11 2007
@@ -16,6 +16,13 @@
 
 package org.apache.axis2.handlers.addressing;
 
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+
 import org.apache.axiom.om.OMAttribute;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMNamespace;
@@ -38,19 +45,11 @@
 import org.apache.axis2.description.HandlerDescription;
 import org.apache.axis2.description.Parameter;
 import org.apache.axis2.handlers.AbstractHandler;
-import org.apache.axis2.i18n.Messages;
 import org.apache.axis2.util.JavaUtils;
 import org.apache.axis2.util.Utils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-import javax.xml.namespace.QName;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
 public class AddressingOutHandler extends AbstractHandler implements AddressingConstants
{
 
     private static final Log log = LogFactory.getLog(AddressingOutHandler.class);
@@ -118,7 +117,6 @@
 
         // if there is no soap header in the envelope being processed, add one.
         if (soapHeader == null) {
-//            SOAPFactory soapFac = msgContext.isSOAP11() ? OMAbstractFactory.getSOAP11Factory()
: OMAbstractFactory.getSOAP12Factory();
             soapHeader = factory.createSOAPHeader(envelope);
         }
 
@@ -374,6 +372,10 @@
         String anonymous = isFinalAddressingNamespace ?
                 Final.WSA_ANONYMOUS_URL : Submission.WSA_ANONYMOUS_URL;
 
+        if(log.isTraceEnabled()){
+        	log.trace("addToSOAPHeader: epr="+epr+" headerName="+headerName);
+        }
+        
         if (epr == null) {
             if (!includeOptionalHeaders && isFinalAddressingNamespace &&
                 AddressingConstants.WSA_REPLY_TO.equals(headerName)) {
@@ -455,6 +457,9 @@
             OMElement addressingHeader = envelope.getHeader().getFirstChildWithName(qname);
     
             if (addressingHeader != null && replaceHeaders) {
+            	if(log.isTraceEnabled()){
+            		log.trace("isAddressingHeaderAlreadyAvailable: Removing existing header:"+addressingHeader.getLocalName());
+            	}
                 addressingHeader.detach();
             }
             else {
@@ -478,8 +483,11 @@
             List headers = envelope.getHeader().getHeaderBlocksWithNSURI(addressingNamespaceObject.getNamespaceURI());
 
             for (int i = 0, size = headers.size(); i < size; i++) {
-                SOAPHeaderBlock soapHeaderBlock = (SOAPHeaderBlock) headers.get(i);
+            	SOAPHeaderBlock soapHeaderBlock = (SOAPHeaderBlock) headers.get(i);
                 soapHeaderBlock.setMustUnderstand(true);  
+                if(log.isTraceEnabled()){
+            		log.trace("processMustUnderstandProperty: Setting mustUnderstand=true on: "+soapHeaderBlock.getLocalName());
+            	}
             }
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message