org.apache.cocoon.components.resolver
Class DefaultResolver

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.excalibur.xml.DefaultEntityResolver
          extended by org.apache.cocoon.components.resolver.DefaultResolver
All Implemented Interfaces:
Disposable, Component, LogEnabled, Parameterizable, Serviceable, ThreadSafe, EntityResolver

public class DefaultResolver
extends DefaultEntityResolver

A component that uses catalogs for resolving entities. This component simply inherits from the excalibur implementation and adds the context: protocol to each relative uri. The catalog is by default loaded from "WEB-INF/entities/catalog". This can be configured by the "catalog" parameter in the cocoon.xconf: <entity-resolver> <parameter name="catalog" value="mycatalog"/> </entity-resolver>

Since:
2.1
Version:
CVS $Id: DefaultResolver.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
 
Fields inherited from class org.apache.excalibur.xml.DefaultEntityResolver
catalogManager, catalogResolver, manager, resolver
 
Fields inherited from interface org.apache.excalibur.xml.EntityResolver
ROLE
 
Constructor Summary
DefaultResolver()
           
 
Method Summary
protected  String defaultCatalog()
          Default catalog path
protected  void parseCatalog(String uri)
          Parse a catalog
 
Methods inherited from class org.apache.excalibur.xml.DefaultEntityResolver
dispose, parameterize, resolveEntity, service
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResolver

public DefaultResolver()
Method Detail

parseCatalog

protected void parseCatalog(String uri)
Parse a catalog

Overrides:
parseCatalog in class DefaultEntityResolver

defaultCatalog

protected String defaultCatalog()
Default catalog path

Overrides:
defaultCatalog in class DefaultEntityResolver


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