You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mi...@apache.org on 2008/07/09 01:05:18 UTC

svn commit: r675025 - /ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java

Author: midon
Date: Tue Jul  8 16:05:18 2008
New Revision: 675025

URL: http://svn.apache.org/viewvc?rev=675025&view=rev
Log:
make the StatusLine available in the message header

Modified:
    ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java

Modified: ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java?rev=675025&r1=675024&r2=675025&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java (original)
+++ ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java Tue Jul  8 16:05:18 2008
@@ -353,12 +353,15 @@
             }
         }
 
-        // also add all HTTP headers into the messade as header parts
+        // add all HTTP headers into the messade as header parts
         Header[] reqHeaders = method.getResponseHeaders();
         for (int i = 0; i < reqHeaders.length; i++) {
             Header h = reqHeaders[i];
             odeMessage.setHeaderPart(h.getName(), h.getValue());
         }
+
+        // make the status line information available as a single element
+        odeMessage.setHeaderPart("StatusLine", HttpClientHelper.statusLineToElement(method.getStatusLine()));
     }