xml-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snic...@apache.org
Subject cvs commit: xml-soap/java/src/org/apache/soap/transport/http SOAPHTTPConnection.java
Date Fri, 03 Jan 2003 16:08:41 GMT
snichol     2003/01/03 08:08:41

  Modified:    java/src/org/apache/soap/transport/http
                        SOAPHTTPConnection.java
  Log:
  Finish cleaning up exception handling in send().
  
  Revision  Changes    Path
  1.30      +8 -16     xml-soap/java/src/org/apache/soap/transport/http/SOAPHTTPConnection.java
  
  Index: SOAPHTTPConnection.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/transport/http/SOAPHTTPConnection.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- SOAPHTTPConnection.java	12 Nov 2002 14:15:38 -0000	1.29
  +++ SOAPHTTPConnection.java	3 Jan 2003 16:08:41 -0000	1.30
  @@ -367,20 +367,12 @@
                       "Basic " + HTTPUtils.encodeAuth(proxyUserName, proxyPassword));
         }
   
  -      try
  -      {
  -        TransportMessage msg = new TransportMessage(payload, ctx, headers);
  -        msg.save();
  -
  -        response = HTTPUtils.post (sendTo, msg,
  -                                   timeout, httpProxyHost, httpProxyPort,
  -                                   outputBufferSize, tcpNoDelay,
  -                                   requestCopy, responseCopy);
  -      } catch (MessagingException me) {
  -        throw new IOException ("Failed to encode mime multipart: " + me);
  -      } catch (UnsupportedEncodingException uee) {
  -        throw new IOException ("Failed to encode mime multipart: " + uee);
  -      }
  +      TransportMessage msg = new TransportMessage(payload, ctx, headers);
  +      msg.save();
  +      response = HTTPUtils.post (sendTo, msg,
  +                                 timeout, httpProxyHost, httpProxyPort,
  +                                 outputBufferSize, tcpNoDelay,
  +                                 requestCopy, responseCopy);
   
         if (maintainSession) {
           // look for Set-Cookie2 and Set-Cookie headers and save them.
  @@ -410,9 +402,9 @@
               cookies = hdrCookies;
           }
         }
  -    } catch (IllegalArgumentException e) {
  -      throw new SOAPException (Constants.FAULT_CODE_CLIENT, e.getMessage(), e);
       } catch (IOException e) {
  +      throw new SOAPException (Constants.FAULT_CODE_CLIENT, e.getMessage(), e);
  +    } catch (MessagingException e) {
         throw new SOAPException (Constants.FAULT_CODE_CLIENT, e.getMessage(), e);
       }
     }
  
  
  

--
To unsubscribe, e-mail:   <mailto:soap-dev-unsubscribe@xml.apache.org>
For additional commands, e-mail: <mailto:soap-dev-help@xml.apache.org>


Mime
View raw message