org.ow2.easywsdl.wsdl.impl.generic
Class WSDLReaderImpl

java.lang.Object
  extended by org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLReaderImpl
      extended by org.ow2.easywsdl.wsdl.impl.generic.WSDLReaderImpl
All Implemented Interfaces:
WSDLReader

public class WSDLReaderImpl
extends AbstractWSDLReaderImpl
implements WSDLReader

Author:
Nicolas Salatge - eBM WebSourcing

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.easywsdl.wsdl.api.WSDLReader
WSDLReader.FeatureConstants
 
Constructor Summary
WSDLReaderImpl()
           
WSDLReaderImpl(java.util.List<java.lang.Class> addedObjectFactories)
           
 
Method Summary
 Description read(org.w3c.dom.Document document)
          

Read the WSDL definition available at the specified DOM Document, and bind it into a Description object.

 Description read(org.xml.sax.InputSource inputSource)
          

Read the WSDL definition available at the specified InputSource, and bind it into a Description object.

 Description read(org.xml.sax.InputSource source, java.util.Map<java.net.URI,AbsItfDescription> descriptionImports, java.util.Map<java.net.URI,org.ow2.easywsdl.schema.api.absItf.AbsItfSchema> schemaImports)
          Read an WSDL part provided by an InputSource, description imports/includes and schema imports/includes provided by descriptionImports and schemaImports are not read.
 Description read(org.xml.sax.InputSource inputSource, java.util.Map<java.net.URI,AbsItfDescription> descriptionImports, java.util.Map<java.net.URI,org.ow2.easywsdl.schema.api.absItf.AbsItfSchema> schemaImports, boolean deleteImports)
          Read an WSDL part provided by an InputSource, description imports/includes and schema imports/includes provided by descriptionImports and schemaImports are not read.
 Description read(java.net.URL wsdlURL)
          

Read the WSDL definition available at the location identified by the specified URL, and bind it into a Description object.

 
Methods inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLReaderImpl
getFeature, getFeatures, getImportList, getSchemaReader, readExternalPart, setDocumentBaseURI, setFeature, setFeatures, setImportList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.easywsdl.wsdl.api.WSDLReader
getFeature, getFeatures, setFeature, setFeatures
 

Constructor Detail

WSDLReaderImpl

public WSDLReaderImpl()
               throws WSDLException
Throws:
WSDLException

WSDLReaderImpl

public WSDLReaderImpl(java.util.List<java.lang.Class> addedObjectFactories)
               throws WSDLException
Throws:
WSDLException
Method Detail

read

public Description read(java.net.URL wsdlURL)
                 throws WSDLException,
                        java.net.MalformedURLException,
                        java.io.IOException,
                        java.net.URISyntaxException

Read the WSDL definition available at the location identified by the specified URL, and bind it into a Description object.

Note: all relative URIs are resolved according to the specified URL.

Specified by:
read in interface WSDLReader
Parameters:
wsdlURL - an URL pointing to a WSDL definition.
Returns:
the Description definition.
Throws:
WSDLException - An error occurs during the parsing or the binding of the WSDL definition
java.io.IOException - An I/O error occurs openning the URL stream.
java.net.URISyntaxException - If the URL is not formatted strictly according to to RFC2396 and cannot be converted to a URI.
java.net.MalformedURLException

read

public Description read(org.xml.sax.InputSource source,
                        java.util.Map<java.net.URI,AbsItfDescription> descriptionImports,
                        java.util.Map<java.net.URI,org.ow2.easywsdl.schema.api.absItf.AbsItfSchema> schemaImports)
                 throws WSDLException,
                        java.net.MalformedURLException,
                        java.net.URISyntaxException
Description copied from interface: WSDLReader
Read an WSDL part provided by an InputSource, description imports/includes and schema imports/includes provided by descriptionImports and schemaImports are not read.

Specified by:
read in interface WSDLReader
Throws:
WSDLException
java.net.MalformedURLException - The InputSource systemId is a malformed URL.
java.net.URISyntaxException - The InputSource systemId is an URL not formatted strictly according to to RFC2396 and cannot be converted to a URI.

read

public Description read(org.xml.sax.InputSource inputSource,
                        java.util.Map<java.net.URI,AbsItfDescription> descriptionImports,
                        java.util.Map<java.net.URI,org.ow2.easywsdl.schema.api.absItf.AbsItfSchema> schemaImports,
                        boolean deleteImports)
                 throws WSDLException,
                        java.net.MalformedURLException,
                        java.net.URISyntaxException
Read an WSDL part provided by an InputSource, description imports/includes and schema imports/includes provided by descriptionImports and schemaImports are not read.

Specified by:
read in class AbstractWSDLReaderImpl
Throws:
WSDLException
java.net.MalformedURLException - The InputSource systemId is a malformed URL.
java.net.URISyntaxException - The InputSource systemId is an URL not formatted strictly according to to RFC2396 and cannot be converted to a URI.

read

public Description read(org.w3c.dom.Document document)
                 throws WSDLException,
                        java.net.URISyntaxException

Read the WSDL definition available at the specified DOM Document, and bind it into a Description object.

Note: To be able to resolve relative URIs, the Document base URI must be set.

Specified by:
read in interface WSDLReader
Parameters:
document - a DOM Document pointing to a WSDL definition.
Returns:
the Description definition.
Throws:
WSDLException - An error occurs during the parsing or the binding of the WSDL definition
java.net.URISyntaxException - the DOM Document base URI is not formatted strictly according to to RFC2396 and cannot be converted to a URI.

read

public Description read(org.xml.sax.InputSource inputSource)
                 throws WSDLException,
                        java.net.MalformedURLException,
                        java.net.URISyntaxException

Read the WSDL definition available at the specified InputSource, and bind it into a Description object.

Note: To be able to resolve relative URIs, the InputSource system identifier must be set.

Specified by:
read in interface WSDLReader
Parameters:
inputSource - an InputSource pointing to a WSDL definition.
Returns:
the Description definition.
Throws:
WSDLException - An error occurs during the parsing or the binding of the WSDL definition.
java.net.MalformedURLException - The InputSource system identifier is not a well-formed URL.
java.net.URISyntaxException - the InputSource system identifier is not formatted strictly according to to RFC2396 and cannot be converted to a URI.


Copyright © 2008-2009 Petals Link (previously EBM WebSourcing). All Rights Reserved.