axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r509482 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
Date Tue, 20 Feb 2007 09:54:20 GMT
Author: thilina
Date: Tue Feb 20 01:54:16 2007
New Revision: 509482

URL: http://svn.apache.org/viewvc?view=rev&rev=509482
Log:
Refactoring

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java?view=diff&rev=509482&r1=509481&r2=509482
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
Tue Feb 20 01:54:16 2007
@@ -201,18 +201,15 @@
 			// epr = something
 			// ######################################################
 
-			if (epr != null) {
-				if (!epr.hasNoneAddress()) {
-					writeMessageWithCommons(msgContext, epr, format);
-				}
+			if ((epr != null) && (!epr.hasNoneAddress())) {
+				writeMessageWithCommons(msgContext, epr, format);
+			} else if (msgContext.getProperty(MessageContext.TRANSPORT_OUT) != null) {
+				sendUsingOutputStream(msgContext, format);
 			} else {
-				if (msgContext.getProperty(MessageContext.TRANSPORT_OUT) != null) {
-					sendUsingOutputStream(msgContext, format);
-				} else {
-					throw new AxisFault(
-							"Both the TO and MessageContext.TRANSPORT_OUT property are Null, No where to send");
-				}
+				throw new AxisFault(
+						"Both the TO and MessageContext.TRANSPORT_OUT property are Null, No where to send");
 			}
+
 			if (msgContext.getOperationContext() != null) {
 				msgContext.getOperationContext().setProperty(
 						Constants.RESPONSE_WRITTEN, Constants.VALUE_TRUE);



---------------------------------------------------------------------
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