Class CatalogURIResolver

  • All Implemented Interfaces:
    org.apache.ws.commons.schema.resolver.URIResolver

    public class CatalogURIResolver
    extends URIResolverImpl
    This resolver provides the means of resolving the imports and includes of a given schema document. It allows the use of the Apache Commons Resolver API to redirect resource requests to alternative locations.
    • Constructor Detail

      • CatalogURIResolver

        public CatalogURIResolver​(JAXWSCatalogManager catalogManager)
        CatalogURIResolver constructor. Resolves WSDL URIs using Apache Commons Resolver API.
        Parameters:
        catalogManager - the OASISCatalogManager which will determine the settings for the XML catalog
      • CatalogURIResolver

        public CatalogURIResolver​(JAXWSCatalogManager catalogManager,
                                  ClassLoader classLoader)
        CatalogURIResolver constructor. Resolves WSDL URIs using Apache Commons Resolver API.
        Parameters:
        catalogManager - the OASISCatalogManager which will determine the settings for the XML catalog
        classLoader -
    • Method Detail

      • getRedirectedURI

        public String getRedirectedURI​(String namespace,
                                       String schemaLocation,
                                       String baseUri)
        Resolves URIs using Apache Commons Resolver API.
        Parameters:
        namespace - a URI specifying the namespace of the document
        schemaLocation - a URI specifying the document to import
        baseURI - a URI specifying the location of the parent document doing the importing
        Returns:
        the resolved import location, or null if no indirection is performed
      • resolveEntity

        public InputSource resolveEntity​(String namespace,
                                         String schemaLocation,
                                         String baseUri)
        As for the resolver the public ID is the target namespace of the schema and the schemaLocation is the value of the schema location
        Specified by:
        resolveEntity in interface org.apache.ws.commons.schema.resolver.URIResolver
        Overrides:
        resolveEntity in class URIResolverImpl
        Parameters:
        namespace -
        schemaLocation -
        baseUri -