cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1543406 - /cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Date Tue, 19 Nov 2013 12:44:54 GMT
Author: ay
Date: Tue Nov 19 12:44:53 2013
New Revision: 1543406

URL: http://svn.apache.org/r1543406
Log:
Merged revisions 1543396 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1543396 | ay | 2013-11-19 12:47:33 +0100 (Tue, 19 Nov 2013) | 2 lines

  [CXF-5391] Response code is not logged for SOAP responses

........

Modified:
    cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java

Modified: cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java?rev=1543406&r1=1543405&r2=1543406&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Tue Nov 19 12:44:53 2013
@@ -576,11 +576,12 @@ public abstract class AbstractHTTPDestin
     private int getReponseCodeFromMessage(Message message) {
         Integer i = (Integer)message.get(Message.RESPONSE_CODE);
         if (i != null) {
-            return i.intValue();  
-        } else if (hasNoResponseContent(message)) {
-            return HttpURLConnection.HTTP_ACCEPTED;
+            return i.intValue();
         } else {
-            return HttpURLConnection.HTTP_OK;
+            int code = hasNoResponseContent(message) ? HttpURLConnection.HTTP_ACCEPTED :
HttpURLConnection.HTTP_OK;
+            // put the code in the message so that others can get it
+            message.put(Message.RESPONSE_CODE, code);
+            return code;
         }
     }
 



Mime
View raw message