Class AARBasedWSDLLocator
java.lang.Object
org.apache.ws.commons.schema.resolver.DefaultURIResolver
org.apache.axis2.deployment.resolver.AARBasedWSDLLocator
- All Implemented Interfaces:
javax.wsdl.xml.WSDLLocator,org.apache.woden.resolver.URIResolver,org.apache.ws.commons.schema.resolver.CollectionURIResolver,org.apache.ws.commons.schema.resolver.URIResolver
public class AARBasedWSDLLocator
extends org.apache.ws.commons.schema.resolver.DefaultURIResolver
implements javax.wsdl.xml.WSDLLocator, org.apache.woden.resolver.URIResolver
Custom WSDL locator to load schemas from zip archives
Need to provide the aarFile and the baseInputStream for
the base WSDL file
The logic here is that we only care about the import location
all imports must be relative to the META-INF folder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAARBasedWSDLLocator(String baseURI, File zipFile, InputStream baseInputStream) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()As for the zip there is no point in returning a base URIgetImportInputSource(String parentLocation, String importLocation) returns the latest importprotected booleanisAbsolute(String uri) Override logic in DefaultURIResolver class to include more schemes (protocols)resolveURI(URI uri) Methods inherited from class org.apache.ws.commons.schema.resolver.DefaultURIResolver
getCollectionBaseURI, getFileURL, getURL, resolveEntity, setCollectionBaseURI
-
Field Details
-
log
protected static final org.apache.commons.logging.Log log
-
-
Constructor Details
-
AARBasedWSDLLocator
-
-
Method Details
-
getBaseInputSource
- Specified by:
getBaseInputSourcein interfacejavax.wsdl.xml.WSDLLocator
-
getImportInputSource
- Specified by:
getImportInputSourcein interfacejavax.wsdl.xml.WSDLLocator- Parameters:
parentLocation-importLocation-
-
getBaseURI
As for the zip there is no point in returning a base URI- Specified by:
getBaseURIin interfacejavax.wsdl.xml.WSDLLocator
-
getLatestImportURI
returns the latest import- Specified by:
getLatestImportURIin interfacejavax.wsdl.xml.WSDLLocator
-
close
public void close()- Specified by:
closein interfacejavax.wsdl.xml.WSDLLocator
-
resolveURI
- Specified by:
resolveURIin interfaceorg.apache.woden.resolver.URIResolver- Throws:
org.apache.woden.WSDLExceptionIOException
-
isAbsolute
Override logic in DefaultURIResolver class to include more schemes (protocols)- Overrides:
isAbsolutein classorg.apache.ws.commons.schema.resolver.DefaultURIResolver- Parameters:
uri-- Returns:
- boolean
-