org.mule.config
Class MuleDtdResolver

java.lang.Object
  extended by org.mule.config.MuleDtdResolver
All Implemented Interfaces:
EntityResolver

public class MuleDtdResolver
extends Object
implements EntityResolver

MuleDtdResolver attempts to locate the mule-configuration.dtd on the classpath, regardless of the DOCTYPE declaration. If the DTD is not found, it defaults to trying to download it using the systemId.

This resolver is responsible for associating an XSL document if any with the DTD. It also allows for a delegate Entity resolver and delegate XSL. This allows Configuration builders to mix Mule Xml configuration with other document based configuration and apply transformers to each of the configuration types (if necessary) before constucting a Mule instance.

Note that its up to the Configuration builder implementation to do the actual transformations this Resolver simply associates XSL resources with DTDs.


Field Summary
static String DEFAULT_MULE_DTD
           
protected static Log logger
          logger used by this class
 
Constructor Summary
MuleDtdResolver()
           
MuleDtdResolver(String dtdName)
           
MuleDtdResolver(String dtdName, EntityResolver delegate)
           
MuleDtdResolver(String dtdName, String xsl)
           
MuleDtdResolver(String dtdName, String xsl, EntityResolver delegate)
           
 
Method Summary
 String getXslForDtd()
           
 InputSource resolveEntity(String publicId, String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Log logger
logger used by this class


DEFAULT_MULE_DTD

public static final String DEFAULT_MULE_DTD
See Also:
Constant Field Values
Constructor Detail

MuleDtdResolver

public MuleDtdResolver()

MuleDtdResolver

public MuleDtdResolver(String dtdName)

MuleDtdResolver

public MuleDtdResolver(String dtdName,
                       String xsl)

MuleDtdResolver

public MuleDtdResolver(String dtdName,
                       EntityResolver delegate)

MuleDtdResolver

public MuleDtdResolver(String dtdName,
                       String xsl,
                       EntityResolver delegate)
Method Detail

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws IOException,
                                 SAXException
Specified by:
resolveEntity in interface EntityResolver
Throws:
IOException
SAXException

getXslForDtd

public String getXslForDtd()


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.