|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.validation.resolver.eXistCatalogResolver
Shared CatalogResolver to be used by the eXist database and the eXist Cocoon web interface. The configuration must be initialized once, typically performed by the database (Configuration class). Consequently the Cocoon interface can reuse the resolver. This resolver guarantees that only one apache.org catalog resolver is being initialized. At this moment the class is just a thin wrapper. To be changed in the near future: Grammar and catalog files can all be stored in the database itself.
Constructor Summary | |
eXistCatalogResolver()
Constructor. |
|
eXistCatalogResolver(boolean privateCatalog)
Constructor. |
|
eXistCatalogResolver(org.apache.xml.resolver.CatalogManager manager)
Constructor. |
Method Summary | |
org.apache.xml.resolver.Catalog |
getCatalog()
Return the underlying catalog |
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base)
An object that implements this interface that can be called by the processor to turn a URI used in document(), xsl:import, or xsl:include into a Source object. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolve grammar specified by publicId and/or systemId. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public eXistCatalogResolver()
public eXistCatalogResolver(boolean privateCatalog)
privateCatalog
- TRUE for private catalog, FALSE if not.public eXistCatalogResolver(org.apache.xml.resolver.CatalogManager manager)
manager
- Specific catalogmanager to use.Method Detail |
public org.apache.xml.resolver.Catalog getCatalog()
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
publicId
- The public identifier of the external entity being
referenced, or null if none was supplied.systemId
- The system identifier of the external entity being
referenced.
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another
exception.
java.io.IOException
- A Java-specific IO exception, possibly the
result of creating a new InputStream or Reader
for the InputSource.resolveEntity
public javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base) throws javax.xml.transform.TransformerException
resolve
in interface javax.xml.transform.URIResolver
href
- An href attribute, which may be relative or absolute.base
- The base URI in effect when the href attribute was
encountered.
javax.xml.transform.TransformerException
- if an error occurs when trying to resolve
the URI.resolve
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |