fr.gouv.culture.sdx.resolver.entity
Class SDXResolver
java.lang.Object
org.apache.avalon.framework.logger.AbstractLoggable
org.apache.cocoon.components.resolver.ResolverImpl
fr.gouv.culture.sdx.resolver.entity.SDXResolver
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.excalibur.xml.EntityResolver, org.xml.sax.EntityResolver, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.framework.parameters.Parameterizable, org.apache.cocoon.components.resolver.Resolver, org.apache.avalon.framework.thread.ThreadSafe
- public class SDXResolver
- extends org.apache.cocoon.components.resolver.ResolverImpl
- implements org.apache.avalon.framework.logger.LogEnabled
A simple extension of Cocoon's ResolverImpl which facilitates the addition of
entity catlogs files based upon configuration data from our application.xconf files.
The current usage of this class in the code specifies that these catalogs will
only be added if and only if the cocoon.xconf is changed to specify our this
resolver with the role set to the value of ROLE in
org.apache.avalon.excalibur.xml.EntityResolver from and we can acquire
this resolver from Cocoon's component manager based upon that role.
Fields inherited from class org.apache.cocoon.components.resolver.ResolverImpl |
catalogResolver, context, manager |
Fields inherited from interface org.apache.avalon.excalibur.xml.EntityResolver |
ROLE |
Fields inherited from interface org.apache.cocoon.components.resolver.Resolver |
ROLE |
Method Summary |
void |
addCatalog(java.net.URL url)
Adds a Entity Catalog to the CatalogResolver
This catalog should be in one of the formats supported by
org.apache.xml.resolver.tools.CatalogResolver |
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
Sets the logger. |
Methods inherited from class org.apache.cocoon.components.resolver.ResolverImpl |
compose, contextualize, dispose, parameterize, resolveEntity |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SDXResolver
public SDXResolver()
addCatalog
public void addCatalog(java.net.URL url)
throws SDXException
- Adds a Entity Catalog to the CatalogResolver
This catalog should be in one of the formats supported by
org.apache.xml.resolver.tools.CatalogResolver
- Parameters:
url
- The url of the catalog to add
- Throws:
SDXException
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
- Sets the logger.
- Specified by:
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
- Parameters:
logger
- The logger to use.
Copyright © 2000-2004 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.