Package org.apache.xml.resolver.helpers
Class BootstrapResolver
java.lang.Object
org.apache.xml.resolver.helpers.BootstrapResolver
- All Implemented Interfaces:
URIResolver
,EntityResolver
A simple bootstrapping resolver.
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.
- Version:
- 1.0
- Author:
- Norman Walsh Norman.Walsh@Sun.COM
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Public identifier for legacy Apache XCatalog files.static final String
Public identifier for OASIS XML Catalog files.static final String
URI of the RELAX NG Grammar for OASIS XML Catalog files.static final String
System identifier for OASIS XML Catalog files.static final String
URI of the W3C XML Schema for OASIS XML Catalog files. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTransformer resolve API.resolveEntity
(String publicId, String systemId) SAX resolveEntity API.
-
Field Details
-
xmlCatalogXSD
URI of the W3C XML Schema for OASIS XML Catalog files.- See Also:
-
xmlCatalogRNG
URI of the RELAX NG Grammar for OASIS XML Catalog files.- See Also:
-
xmlCatalogPubId
Public identifier for OASIS XML Catalog files.- See Also:
-
xmlCatalogSysId
System identifier for OASIS XML Catalog files.- See Also:
-
xCatalogPubId
Public identifier for legacy Apache XCatalog files. There is no official system identifier for XCatalog files.- See Also:
-
-
Constructor Details
-
BootstrapResolver
public BootstrapResolver()Constructor.
-
-
Method Details
-
resolveEntity
SAX resolveEntity API.- Specified by:
resolveEntity
in interfaceEntityResolver
-
resolve
Transformer resolve API.- Specified by:
resolve
in interfaceURIResolver
- Throws:
TransformerException
-