Package org.apache.axis2.jaxws.util
Class CatalogWSDLLocator
java.lang.Object
org.apache.axis2.jaxws.util.BaseWSDLLocator
org.apache.axis2.jaxws.util.CatalogWSDLLocator
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionCatalogWSDLLocator(String uri, InputStream stream, ClassLoader classLoader, JAXWSCatalogManager catalogManager) CatalogWSDLLocator constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected InputStreamgetInputStream(String importPath) Returns an InputStream pointed at an imported wsdl pathname relative to the parent document.getRedirectedURI(String importURI, String parent) Resolves WSDL URIs using Apache Commons Resolver API.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, normalizePathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.wsdl.xml.WSDLLocator
getBaseInputSource, getBaseURI, getImportInputSource, getLatestImportURI
-
Constructor Details
-
CatalogWSDLLocator
public CatalogWSDLLocator(String uri, InputStream stream, ClassLoader classLoader, JAXWSCatalogManager catalogManager) CatalogWSDLLocator constructor. Resolves WSDL URIs using Apache Commons Resolver API.- Parameters:
uri- the path for the base wsdl file, relative to the module rootstream- the InputStream for the base wsdl fileclassloader- the ClassLoader for the modulecatalogManager- the OASISCatalogManager which will determine the settings for the XML catalog
-
-
Method Details
-
getRedirectedURI
Resolves WSDL URIs using Apache Commons Resolver API.- Specified by:
getRedirectedURIin classBaseWSDLLocator- Parameters:
importURI- a URI specifying the document to importparent- a URI specifying the location of the parent document doing the importing- Returns:
- the resolved import location, or null if no indirection is performed
-
getInputStream
Returns an InputStream pointed at an imported wsdl pathname relative to the parent document.- Specified by:
getInputStreamin classBaseWSDLLocator- Parameters:
importPath- identifies the WSDL file within the context- Returns:
- a stream of the WSDL file
- Throws:
IOException
-
getWsdlUrl
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:
closein interfacejavax.wsdl.xml.WSDLLocator
-