org.codehaus.cargo.module
Class XmlEntityResolver

java.lang.Object
  extended by org.codehaus.cargo.module.XmlEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

public class XmlEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

Implementation of the SAX EntityResolver interface that looks up the web-app DTDs from the JAR.

Version:
$Id: Dtd.java 359 2005-05-10 07:39:02Z vmassol $

Constructor Summary
XmlEntityResolver()
           
 
Method Summary
 java.lang.String getDtdFileName(java.lang.String thePublicId, java.lang.String theSystemId)
          Tries to decide the file name of a DTD from the public and system id.
 org.xml.sax.InputSource resolveEntity(java.lang.String thePublicId, java.lang.String theSystemId)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlEntityResolver

public XmlEntityResolver()
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String thePublicId,
                                             java.lang.String theSystemId)
                                      throws org.xml.sax.SAXException,
                                             java.io.IOException

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Throws:
org.xml.sax.SAXException
java.io.IOException
See Also:
EntityResolver.resolveEntity(java.lang.String, java.lang.String)

getDtdFileName

public java.lang.String getDtdFileName(java.lang.String thePublicId,
                                       java.lang.String theSystemId)
Tries to decide the file name of a DTD from the public and system id.

Parameters:
thePublicId - the publid id
theSystemId - the system id
Returns:
the file name


Copyright © 2004-2011 Codehaus. All Rights Reserved.