ws-woden-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkapu...@apache.org
Subject svn commit: r307313 - in /incubator/woden/java/src/org/apache/woden/internal: BaseWSDLReader.java DOMWSDLReader.java
Date Sat, 08 Oct 2005 17:03:14 GMT
Author: jkaputin
Date: Sat Oct  8 10:03:08 2005
New Revision: 307313

URL: http://svn.apache.org/viewcvs?rev=307313&view=rev
Log:
Improved some comments and exception handling.

Modified:
    incubator/woden/java/src/org/apache/woden/internal/BaseWSDLReader.java
    incubator/woden/java/src/org/apache/woden/internal/DOMWSDLReader.java

Modified: incubator/woden/java/src/org/apache/woden/internal/BaseWSDLReader.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/BaseWSDLReader.java?rev=307313&r1=307312&r2=307313&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/BaseWSDLReader.java (original)
+++ incubator/woden/java/src/org/apache/woden/internal/BaseWSDLReader.java Sat Oct  8 10:03:08
2005
@@ -43,7 +43,6 @@
     
     protected ReaderFeatures features;
 
-    //Override the default constructor to throw a WSDL exception
     protected BaseWSDLReader() throws WSDLException {
         fErrorReporter= new ErrorReporter(); 
         features = new ReaderFeatures();
@@ -62,19 +61,14 @@
      * 
      * @return Returns a.
      */
-    protected WSDLFactory getFactory() throws WSDLException {
-        
-        if(fFactory == null) {
-            
-            try {
-                fFactory = (fFactoryImplName != null)
-                ? WSDLFactory.newInstance(fFactoryImplName)
-                : WSDLFactory.newInstance();
-            } catch (WSDLException e) {
-                e.printStackTrace();
-            }
+    protected WSDLFactory getFactory() throws WSDLException 
+    {
+        if(fFactory == null) 
+        {
+            fFactory = (fFactoryImplName != null)
+                        ? WSDLFactory.newInstance(fFactoryImplName)
+                        : WSDLFactory.newInstance();
         }
-        
         return fFactory;
     }
 

Modified: incubator/woden/java/src/org/apache/woden/internal/DOMWSDLReader.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/DOMWSDLReader.java?rev=307313&r1=307312&r2=307313&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/DOMWSDLReader.java (original)
+++ incubator/woden/java/src/org/apache/woden/internal/DOMWSDLReader.java Sat Oct  8 10:03:08
2005
@@ -61,6 +61,8 @@
 import org.xml.sax.SAXException;
 
 /**
+ * Implements the WSDLReader behaviour for DOM-based parsing.
+ * 
  * @author jkaputin@apache.org
  */
 public class DOMWSDLReader extends BaseWSDLReader {
@@ -74,13 +76,8 @@
     
     //TODO add other types of readWSDL methods.
     
-    /**
-     * Read the WSDL document accessible via the specified
-     * URI into a WSDL definition.
-     *
-     * @param wsdlURI a URI (can be a filename or URL) pointing to a
-     * WSDL XML description.
-     * @return the description.
+    /*
+     * @see org.apache.woden.WSDLReader#readWSDL(String)
      */
     public DescriptionElement readWSDL(String wsdlURI) throws WSDLException {
         



---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Mime
View raw message