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.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
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
    Modifier and Type
    Field
    Description
    protected static final org.apache.commons.logging.Log
     

    Fields inherited from class org.apache.ws.commons.schema.resolver.DefaultURIResolver

    ALLOW_FILE_SYSTEM_PROPERTY, ALLOW_NETWORK_PROPERTY, CHECK_ADDRESSES_PROPERTY, CONNECT_TIMEOUT_PROPERTY, MAX_BYTES_PROPERTY, MAX_FETCH_MILLIS_PROPERTY, MAX_REDIRECTS_PROPERTY, READ_TIMEOUT_PROPERTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    AARBasedWSDLLocator(String baseURI, File zipFile, InputStream baseInputStream)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    As for the zip there is no point in returning a base URI
    getImportInputSource(String parentLocation, String importLocation)
     
    returns the latest import
    protected boolean
    Override logic in DefaultURIResolver class to include more schemes (protocols)

    Methods inherited from class org.apache.ws.commons.schema.resolver.DefaultURIResolver

    getCollectionBaseURI, resolveEntity, setCollectionBaseURI

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected static final org.apache.commons.logging.Log log
  • Constructor Details

    • AARBasedWSDLLocator

      public AARBasedWSDLLocator(String baseURI, File zipFile, InputStream baseInputStream)
  • Method Details

    • getBaseInputSource

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

      public InputSource getImportInputSource(String parentLocation, String importLocation)
      Specified by:
      getImportInputSource in interface javax.wsdl.xml.WSDLLocator
      Parameters:
      parentLocation -
      importLocation -
    • 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
    • getLatestImportURI

      public String getLatestImportURI()
      returns the latest import
      Specified by:
      getLatestImportURI in interface javax.wsdl.xml.WSDLLocator
    • close

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

      protected boolean isAbsolute(String uri)
      Override logic in DefaultURIResolver class to include more schemes (protocols)
      Parameters:
      uri -
      Returns:
      boolean