Class ModuleWSDLLocator

java.lang.Object
org.apache.axis2.jaxws.util.BaseWSDLLocator
org.apache.axis2.jaxws.util.ModuleWSDLLocator
All Implemented Interfaces:
javax.wsdl.xml.WSDLLocator

public class ModuleWSDLLocator 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.
  • Constructor Details

    • ModuleWSDLLocator

      public ModuleWSDLLocator(String uri, InputStream stream, ClassLoader classLoader)
      ModuleWSDLLocator constructor.
      Parameters:
      uri - the path for the base wsdl file, relative to the module root
      stream - the InputStream for the base wsdl file
      strategy - the load strategy for the module
  • Method Details

    • getRedirectedURI

      protected String getRedirectedURI(String importURI, String parent)
      Returns null because no URI indirection is performed when using the ModuleWSDLLocator.
      Specified by:
      getRedirectedURI in class BaseWSDLLocator
      Parameters:
      importURI - a URI specifying the document to import
      parent - a URI specifying the location of the parent document doing the importing
      Returns:
      null
    • getInputStream

      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
      Parameters:
      importPath - identifies the WSDL file within the context
      Returns:
      a stream of the WSDL file
      Throws:
      IOException
    • getWsdlUrl

      public URL getWsdlUrl(String wsdlLocation)
      Return the wsdlLocation in URL form. WsdlLocation could be URL, relative module path, full absolute path.
      Parameters:
      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
      Returns:
      the location of the WSDL document in the form of a URL
    • close

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