Class CatalogWSDLLocator

  extended by org.apache.axis2.jaxws.util.BaseWSDLLocator
      extended by org.apache.axis2.jaxws.util.CatalogWSDLLocator
All Implemented Interfaces:

public class CatalogWSDLLocator
extends BaseWSDLLocator
implements javax.wsdl.xml.WSDLLocator

This class is an implementation of a WSDL4J interface and is the implementation we supply to a WSDLReader instance. Its primary goal is to assist with locating imported WSDL documents.

Field Summary
Fields inherited from class org.apache.axis2.jaxws.util.BaseWSDLLocator
baseInputStream, baseURI, lastestImportURI
Constructor Summary
CatalogWSDLLocator(String uri, InputStream stream, ClassLoader classLoader, JAXWSCatalogManager catalogManager)
          CatalogWSDLLocator constructor.
Method Summary
 void close()
protected  InputStream getInputStream(String importPath)
          Returns an InputStream pointed at an imported wsdl pathname relative to the parent document.
 String getRedirectedURI(String importURI, String parent)
          Resolves WSDL URIs using Apache Commons Resolver API.
 URL getWsdlUrl(String wsdlLocation)
          Return the wsdlLocation in URL form.
Methods inherited from class org.apache.axis2.jaxws.util.BaseWSDLLocator
convertURI, getBaseInputSource, getBaseURI, getImportInputSource, getLatestImportURI, isAbsoluteImport, normalizePath
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.wsdl.xml.WSDLLocator
getBaseInputSource, getBaseURI, getImportInputSource, getLatestImportURI

Constructor Detail


public CatalogWSDLLocator(String uri,
                          InputStream stream,
                          ClassLoader classLoader,
                          JAXWSCatalogManager catalogManager)
CatalogWSDLLocator constructor. Resolves WSDL URIs using Apache Commons Resolver API.

uri - the path for the base wsdl file, relative to the module root
stream - the InputStream for the base wsdl file
classloader - the ClassLoader for the module
catalogManager - the OASISCatalogManager which will determine the settings for the XML catalog
Method Detail


public String getRedirectedURI(String importURI,
                               String parent)
Resolves WSDL URIs using Apache Commons Resolver API.

Specified by:
getRedirectedURI in class BaseWSDLLocator
importURI - a URI specifying the document to import
parent - a URI specifying the location of the parent document doing the importing
the resolved import location, or null if no indirection is performed


protected InputStream getInputStream(String importPath)
                              throws IOException
Returns an InputStream pointed at an imported wsdl pathname relative to the parent document.

Specified by:
getInputStream in class BaseWSDLLocator
importPath - identifies the WSDL file within the context
a stream of the WSDL file


public URL getWsdlUrl(String wsdlLocation)
Return the wsdlLocation in URL form. WsdlLocation could be URL, relative module path, full absolute path.

wsdlLocation - the location of a WSDL document in the form of a URL string, a relative pathname (relative to the root of a module, or a full-qualified absolute pathname
the location of the WSDL document in the form of a URL


public void close()
Specified by:
close in interface javax.wsdl.xml.WSDLLocator

Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.