public class BootstrapResolver extends Object implements EntityResolver, URIResolver
This class is used as the entity resolver when reading XML Catalogs. It searches for the OASIS XML Catalog DTD, Relax NG Grammar and W3C XML Schema as resources (e.g., in the resolver jar file).
If you have your own DTDs or schemas, you can extend this class and set the BootstrapResolver in your CatalogManager.
CatalogManager
Modifier and Type | Field and Description |
---|---|
static String |
xmlCatalogPubId
Public identifier for OASIS XML Catalog files.
|
static String |
xmlCatalogRNG
URI of the RELAX NG Grammar for OASIS XML Catalog files.
|
static String |
xmlCatalogSysId
System identifier for OASIS XML Catalog files.
|
static String |
xmlCatalogXSD
URI of the W3C XML Schema for OASIS XML Catalog files.
|
Constructor and Description |
---|
BootstrapResolver()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Source |
resolve(String href,
String base)
Transformer resolve API.
|
InputSource |
resolveEntity(String publicId,
String systemId)
SAX resolveEntity API.
|
public static final String xmlCatalogXSD
public static final String xmlCatalogRNG
public static final String xmlCatalogPubId
public static final String xmlCatalogSysId
public InputSource resolveEntity(String publicId, String systemId)
resolveEntity
in interface EntityResolver
public Source resolve(String href, String base) throws TransformerException
resolve
in interface URIResolver
TransformerException
Copyright © 2018 JBoss by Red Hat. All rights reserved.