Class ConfigurationEntityResolver
- java.lang.Object
-
- org.apache.jackrabbit.core.config.ConfigurationEntityResolver
-
- All Implemented Interfaces:
EntityResolver
public class ConfigurationEntityResolver extends Object implements EntityResolver
Entity resolver for Jackrabbit configuration files. This simple resolver contains mappings for the following public identifiers used for the Jackrabbit configuration files:-//The Apache Software Foundation//DTD Jackrabbit 2.6//EN-//The Apache Software Foundation//DTD Jackrabbit 2.4//EN-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN-//The Apache Software Foundation//DTD Jackrabbit 1.5//EN-//The Apache Software Foundation//DTD Jackrabbit 1.4//EN-//The Apache Software Foundation//DTD Jackrabbit 1.2//EN-//The Apache Software Foundation//DTD Jackrabbit 1.0//EN
Also the following system identifiers are mapped to local resources:
http://jackrabbit.apache.org/dtd/repository-2.6.dtdhttp://jackrabbit.apache.org/dtd/repository-2.4.dtdhttp://jackrabbit.apache.org/dtd/repository-2.0.dtdhttp://jackrabbit.apache.org/dtd/repository-1.6.dtdhttp://jackrabbit.apache.org/dtd/repository-1.5.dtdhttp://jackrabbit.apache.org/dtd/repository-1.4.dtdhttp://jackrabbit.apache.org/dtd/repository-1.2.dtdhttp://jackrabbit.apache.org/dtd/repository-1.0.dtd
The public identifiers are mapped to document type definition files included in the Jackrabbit jar archive.
-
-
Field Summary
Fields Modifier and Type Field Description static EntityResolverINSTANCEThe singleton instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSourceresolveEntity(String publicId, String systemId)Resolves an entity to the corresponding input source.
-
-
-
Field Detail
-
INSTANCE
public static final EntityResolver INSTANCE
The singleton instance of this class.
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
Resolves an entity to the corresponding input source.- Specified by:
resolveEntityin interfaceEntityResolver- Parameters:
publicId- public identifiersystemId- system identifier- Returns:
- resolved entity source
- Throws:
SAXException- on SAX errorsIOException- on IO errors
-
-