Class XMLCatalogResolverExtension

    • Constructor Detail

      • XMLCatalogResolverExtension

        public XMLCatalogResolverExtension()
    • Method Detail

      • resolve

        public String resolve​(String baseURI,
                              String publicId,
                              String systemId)
        Specified by:
        resolve in interface URIResolverExtension
        Parameters:
        baseURI - - the location of the resource that contains the uri
        publicId - - an optional public identifier (i.e. namespace name), or null if none
        systemId - - an absolute or relative URI, or null if none
        Returns:
        an absolute URI representation of the 'logical' location of the resource
      • resolveEntity

        public org.apache.xerces.xni.parser.XMLInputSource resolveEntity​(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier)
                                                                  throws org.apache.xerces.xni.XNIException,
                                                                         IOException
        Specified by:
        resolveEntity in interface URIResolverExtension
        Specified by:
        resolveEntity in interface org.apache.xerces.xni.parser.XMLEntityResolver
        Throws:
        org.apache.xerces.xni.XNIException
        IOException
      • setRootUri

        public void setRootUri​(String rootUri)
        Set the root URI
        Parameters:
        rootUri - the root URI
      • setCatalogs

        public boolean setCatalogs​(String[] catalogs)
        Initialize catalogs path.
        Parameters:
        catalogs - the catalog path array.
        Returns:
        true if catalogs changed and false otherwise
      • expandSystemId

        public String expandSystemId​(String path)
      • refreshCatalogs

        public void refreshCatalogs()
        Refresh the XML catalogs.
      • getCatalogs

        public String[] getCatalogs()
        Get the XML catalogs.