Class CatalogImpl

java.lang.Object
org.apache.xml.resolver.Catalog
com.evolveum.midpoint.prism.impl.schema.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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    TODO: reconsider after removing WAR.

    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

    Methods inherited from class java.lang.Object

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

    • CatalogImpl

      public CatalogImpl()
  • Method Details

    • makeAbsolute

      protected String makeAbsolute(String sysid)
      TODO: reconsider after removing WAR. 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