You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by bo...@apache.org on 2007/04/13 00:40:10 UTC

svn commit: r528265 - /incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java

Author: boisvert
Date: Thu Apr 12 15:40:09 2007
New Revision: 528265

URL: http://svn.apache.org/viewvc?view=rev&rev=528265
Log:
Add a few isDebugEnabled()

Modified:
    incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java

Modified: incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java?view=diff&rev=528265&r1=528264&r2=528265
==============================================================================
--- incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java (original)
+++ incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java Thu Apr 12 15:40:09 2007
@@ -105,8 +105,10 @@
 
             Options options = new Options();
             EndpointReference axisEPR = new EndpointReference(((MutableEndpoint) odeMex.getEndpointReference()).getUrl());
-            __log.debug("Axis2 sending message to " + axisEPR.getAddress() + " using MEX " + odeMex);
-            __log.debug("Message: " + soapEnv);
+            if (__log.isDebugEnabled()) {
+                __log.debug("Axis2 sending message to " + axisEPR.getAddress() + " using MEX " + odeMex);
+                __log.debug("Message: " + soapEnv);
+            }
             options.setTo(axisEPR);
             String soapAction = _converter.getSoapAction(odeMex.getOperationName());
             options.setAction(soapAction);
@@ -178,7 +180,9 @@
         String myRoleSessionId = odeMex.getProperty(MessageExchange.PROPERTY_SEP_MYROLE_SESSIONID);
 
         if (partnerSessionId != null) {
-            __log.debug("Partner session identifier found for WSA endpoint: " + partnerSessionId);
+            if (__log.isDebugEnabled()) {
+                __log.debug("Partner session identifier found for WSA endpoint: " + partnerSessionId);
+            }
             targetEPR.setSessionId(partnerSessionId);
         }
         options.setProperty("targetSessionEndpoint", targetEPR);
@@ -187,7 +191,9 @@
 
         if (myRoleEPR != null) {
             if (myRoleSessionId != null) {
-                __log.debug("MyRole session identifier found for myrole (callback) WSA endpoint: " + myRoleSessionId);
+                if (__log.isDebugEnabled()) {
+                    __log.debug("MyRole session identifier found for myrole (callback) WSA endpoint: " + myRoleSessionId);
+                }
                 myRoleEPR.setSessionId(myRoleSessionId);
             }
 
@@ -206,7 +212,7 @@
     }
 
     public void close() {
-        // TODO Auto-generated method stub
+        // nothing
     }
 
     public void setReplicateEmptyNS(boolean isReplicateEmptyNS) {
@@ -272,19 +278,27 @@
                             .getMessage().getQName()) : odeMex.createMessage(odeMex.getOperation().getOutput().getMessage()
                             .getQName());
                     try {
-                        __log.debug("Received response for MEX " + odeMex);
+                        if (__log.isDebugEnabled()) {
+                            __log.debug("Received response for MEX " + odeMex);
+                        }
                         response.setMessage(odeMsgEl);
                         if (fault) {
                             if (faultType != null) {
-                                __log.debug("FAULT RESPONSE(" + faultType + "): " + DOMUtils.domToString(odeMsgEl));
+                                if (__log.isDebugEnabled()) {
+                                    __log.debug("FAULT RESPONSE(" + faultType + "): " + DOMUtils.domToString(odeMsgEl));
+                                }
                                 odeMex.replyWithFault(faultType, response);
                             } else {
-                                __log.debug("FAULT RESPONSE(unknown fault type): " + DOMUtils.domToString(odeMsgEl));
+                                if (__log.isDebugEnabled()) {
+                                    __log.debug("FAULT RESPONSE(unknown fault type): " + DOMUtils.domToString(odeMsgEl));
+                                }
                                 odeMex.replyWithFailure(FailureType.FORMAT_ERROR, reply.getEnvelope().getBody().getFault()
                                         .getText(), null);
                             }
                         } else {
-                            __log.debug("RESPONSE (NORMAL): " + DOMUtils.domToString(odeMsgEl));
+                            if (__log.isDebugEnabled()) {
+                                __log.debug("RESPONSE (NORMAL): " + DOMUtils.domToString(odeMsgEl));
+                            }
                             odeMex.reply(response);
 
                         }