Return-Path: X-Original-To: apmail-jmeter-commits-archive@minotaur.apache.org Delivered-To: apmail-jmeter-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B65F5DF49 for ; Sun, 2 Sep 2012 13:52:47 +0000 (UTC) Received: (qmail 5821 invoked by uid 500); 2 Sep 2012 13:52:47 -0000 Delivered-To: apmail-jmeter-commits-archive@jmeter.apache.org Received: (qmail 5798 invoked by uid 500); 2 Sep 2012 13:52:47 -0000 Mailing-List: contact commits-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list commits@jmeter.apache.org Received: (qmail 5791 invoked by uid 99); 2 Sep 2012 13:52:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Sep 2012 13:52:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Sep 2012 13:52:46 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A5BB323888E3 for ; Sun, 2 Sep 2012 13:52:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@jmeter.apache.org From: pmouawad@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120902135203.A5BB323888E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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()); } /**