org.apache.axis2.deployment.resolver
Class AARBasedWSDLLocator

java.lang.Object
  extended byorg.apache.axis2.deployment.resolver.AARBasedWSDLLocator
All Implemented Interfaces:
javax.wsdl.xml.WSDLLocator

public class AARBasedWSDLLocator
extends Object
implements javax.wsdl.xml.WSDLLocator

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


Constructor Summary
AARBasedWSDLLocator(File zipFile, InputStream baseInputStream)
           
 
Method Summary
 InputSource getBaseInputSource()
           
 String getBaseURI()
          As for the zip there is no point in returning a base URI
 InputSource getImportInputSource(String parentLocation, String importLocation)
           
 String getLatestImportURI()
          returns the latest import
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AARBasedWSDLLocator

public AARBasedWSDLLocator(File zipFile,
                           InputStream baseInputStream)
Method Detail

getBaseInputSource

public InputSource getBaseInputSource()
Specified by:
getBaseInputSource in interface javax.wsdl.xml.WSDLLocator
Returns:

getImportInputSource

public InputSource getImportInputSource(String parentLocation,
                                        String importLocation)
Specified by:
getImportInputSource in interface javax.wsdl.xml.WSDLLocator
Parameters:
parentLocation -
importLocation -
Returns:

getBaseURI

public String getBaseURI()
As for the zip there is no point in returning a base URI

Specified by:
getBaseURI in interface javax.wsdl.xml.WSDLLocator
Returns:

getLatestImportURI

public String getLatestImportURI()
returns the latest import

Specified by:
getLatestImportURI in interface javax.wsdl.xml.WSDLLocator
Returns: