Class CatalogImpl


  • public class CatalogImpl
    extends org.apache.xml.resolver.Catalog
    • Field Summary

      • Fields inherited from class org.apache.xml.resolver.Catalog

        base, BASE, CATALOG, catalogCwd, catalogEntries, catalogFiles, catalogManager, catalogs, default_override, DELEGATE_PUBLIC, DELEGATE_SYSTEM, DELEGATE_URI, DOCTYPE, DOCUMENT, DTDDECL, ENTITY, LINKTYPE, localCatalogFiles, localDelegate, NOTATION, OVERRIDE, PUBLIC, readerArr, readerMap, REWRITE_SYSTEM, REWRITE_URI, SGMLDECL, SYSTEM, SYSTEM_SUFFIX, URI, URI_SUFFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      CatalogImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String makeAbsolute​(String sysid)
      This fixes catalog items.
      • Methods inherited from class org.apache.xml.resolver.Catalog

        addDelegate, addEntry, addReader, copyReaders, encodedByte, fixSlashes, getCatalogManager, getCurrentBase, getDefaultOverride, loadSystemCatalogs, newCatalog, normalizeURI, parseAllCatalogs, parseCatalog, parseCatalog, parseCatalog, parseCatalogFile, parsePendingCatalogs, resolveDoctype, resolveDocument, resolveEntity, resolveLocalPublic, resolveLocalSystem, resolveLocalURI, resolveNotation, resolvePublic, resolveSubordinateCatalogs, resolveSystem, resolveURI, setCatalogManager, setupReaders, unknownEntry
    • Constructor Detail

      • CatalogImpl

        public CatalogImpl()
    • Method Detail

      • makeAbsolute

        protected String makeAbsolute​(String sysid)
        This fixes catalog items. When launched as spring boot fat jar, catalog by default resolve URIs like

        jar:file:/SOME_ABSOLUTE_PATH/midpoint.war!/WEB-INF/lib/schema-3.7-SNAPSHOT.jar!/META-INF/../xml/ns/public/common/common-core-3.xsd

        which looks at first sight, but correct working version is:

        jar:file:/SOME_ABSOLUTE_PATH/midpoint.war!/WEB-INF/lib/schema-3.7-SNAPSHOT.jar!/xml/ns/public/common/common-core-3.xsd

        This catalog impl is enabled only when in spring boot fat jar is launched through main() using:

        System.setProperty("xml.catalog.className", CatalogImpl.class.getName());

        Overrides:
        makeAbsolute in class org.apache.xml.resolver.Catalog