You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by th...@apache.org on 2007/02/20 10:54:20 UTC
svn commit: r509482 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
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