org.apache.jackrabbit.core.config
Class ConfigurationEntityResolver

java.lang.Object
  extended by 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:

Also the following system identifiers are mapped to local resources:

The public identifiers are mapped to document type definition files included in the Jackrabbit jar archive.


Field Summary
static EntityResolver INSTANCE
          The singleton instance of this class.
 
Method Summary
 InputSource resolveEntity(String publicId, String systemId)
          Resolves an entity to the corresponding input source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
resolveEntity in interface EntityResolver
Parameters:
publicId - public identifier
systemId - system identifier
Returns:
resolved entity source
Throws:
SAXException - on SAX errors
IOException - on IO errors


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.