Author: midon
Date: Tue Jul  8 14:52:33 2008
New Revision: 674979

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

Modified:
    
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java

Modified: 
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java
URL: 
http://svn.apache.org/viewvc/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java?rev=674979&r1=674978&r2=674979&view=diff
==============================================================================
--- 
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java
 (original)
+++ 
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java
 Tue Jul  8 14:52:33 2008
@@ -355,12 +355,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()));
     }
 
 


Reply via email to