jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1379970 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java
Date Sun, 02 Sep 2012 13:52:03 GMT
Author: pmouawad
Date: Sun Sep  2 13:52:03 2012
New Revision: 1379970

URL: http://svn.apache.org/viewvc?rev=1379970&view=rev
Log:
Removed useless code

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java?rev=1379970&r1=1379969&r2=1379970&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java Sun
Sep  2 13:52:03 2012
@@ -176,19 +176,15 @@ public class WSDLHelper {
      * @throws IOException
      */
     protected void connect() throws IOException {
-        try {
-            CONN = WSDLURL.openConnection();
-            CONN.setConnectTimeout(GET_WDSL_TIMEOUT);
-            CONN.setReadTimeout(GET_WDSL_TIMEOUT);
-            // in the rare case the WSDL is protected and requires
-            // authentication, use the AuthManager to set the
-            // authorization. Basic and Digest authorization are
-            // pretty weak and don't provide real security.
-            if (CONN instanceof HttpURLConnection && this.AUTH != null &&
this.AUTH.getAuthHeaderForURL(this.WSDLURL) != null) {
-                CONN.setRequestProperty("Authorization", this.AUTH.getAuthHeaderForURL(this.WSDLURL));
-            }
-        } catch (IOException exception) {
-            throw exception;
+        CONN = WSDLURL.openConnection();
+        CONN.setConnectTimeout(GET_WDSL_TIMEOUT);
+        CONN.setReadTimeout(GET_WDSL_TIMEOUT);
+        // in the rare case the WSDL is protected and requires
+        // authentication, use the AuthManager to set the
+        // authorization. Basic and Digest authorization are
+        // pretty weak and don't provide real security.
+        if (CONN instanceof HttpURLConnection && this.AUTH != null && this.AUTH.getAuthHeaderForURL(this.WSDLURL)
!= null) {
+            CONN.setRequestProperty("Authorization", this.AUTH.getAuthHeaderForURL(this.WSDLURL));
         }
     }
 
@@ -210,18 +206,10 @@ public class WSDLHelper {
      * using javax.xml.parser API.
      */
     protected void buildDocument() throws ParserConfigurationException, IOException, SAXException
{
-        try {
-            DocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();
-            dbfactory.setNamespaceAware(true);
-            DocumentBuilder docbuild = dbfactory.newDocumentBuilder();
-            WSDLDOC = docbuild.parse(CONN.getInputStream());
-        } catch (ParserConfigurationException exception) {
-            throw exception;
-        } catch (IOException exception) {
-            throw exception;
-        } catch (SAXException exception) {
-            throw exception;
-        }
+        DocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();
+        dbfactory.setNamespaceAware(true);
+        DocumentBuilder docbuild = dbfactory.newDocumentBuilder();
+        WSDLDOC = docbuild.parse(CONN.getInputStream());
     }
 
     /**



Mime
View raw message