org.mule.config
Class MuleDtdResolver
java.lang.Object
org.mule.config.MuleDtdResolver
- All Implemented Interfaces:
- org.xml.sax.EntityResolver
- public class MuleDtdResolver
- extends java.lang.Object
- implements org.xml.sax.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 resolve 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 simple associates Xsl reosurces with dtds
- Version:
- $Revision: 1.2 $
- Author:
- Ross Mason
Method Summary |
java.lang.String |
getXslForDtd()
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static transient Log logger
- logger used by this class
DEFAULT_MULE_DTD
public static final java.lang.String DEFAULT_MULE_DTD
- See Also:
- Constant Field Values
MuleDtdResolver
public MuleDtdResolver()
MuleDtdResolver
public MuleDtdResolver(java.lang.String dtdName)
MuleDtdResolver
public MuleDtdResolver(java.lang.String dtdName,
java.lang.String xsl)
MuleDtdResolver
public MuleDtdResolver(java.lang.String dtdName,
org.xml.sax.EntityResolver delegate)
MuleDtdResolver
public MuleDtdResolver(java.lang.String dtdName,
java.lang.String xsl,
org.xml.sax.EntityResolver delegate)
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws java.io.IOException,
org.xml.sax.SAXException
- Specified by:
resolveEntity
in interface org.xml.sax.EntityResolver
- Throws:
java.io.IOException
org.xml.sax.SAXException
getXslForDtd
public java.lang.String getXslForDtd()
Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.