axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r382533 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
Date Thu, 02 Mar 2006 22:21:37 GMT
Author: dims
Date: Thu Mar  2 14:21:35 2006
New Revision: 382533

URL: http://svn.apache.org/viewcvs?rev=382533&view=rev
Log:
spelling fix and fix another NPE

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java?rev=382533&r1=382532&r2=382533&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
Thu Mar  2 14:21:35 2006
@@ -181,8 +181,8 @@
      * @param method
      * @param msgContext
      */
-    protected void obatainHTTPHeaderInformation(HttpMethodBase method,
-                                                MessageContext msgContext) {
+    protected void obtainHTTPHeaderInformation(HttpMethodBase method,
+                                               MessageContext msgContext) {
         Header header =
                 method.getResponseHeader(HTTPConstants.HEADER_CONTENT_TYPE);
 
@@ -225,7 +225,7 @@
     protected void processResponse(HttpMethodBase httpMethod,
                                    MessageContext msgContext)
             throws IOException {
-        obatainHTTPHeaderInformation(httpMethod, msgContext);
+        obtainHTTPHeaderInformation(httpMethod, msgContext);
 
         InputStream in = httpMethod.getResponseBodyAsStream();
 
@@ -234,8 +234,10 @@
                     Messages.getMessage("canNotBeNull", "InputStream"));
         }
 
-        msgContext.getOperationContext()
-                .setProperty(MessageContext.TRANSPORT_IN, in);
+        if(msgContext.getOperationContext() != null) {
+            msgContext.getOperationContext()
+                    .setProperty(MessageContext.TRANSPORT_IN, in);
+        }
     }
 
     public abstract void send(MessageContext msgContext, OMElement dataout,



Mime
View raw message