org.codehaus.cargo.module
Class XmlEntityResolver

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

public class XmlEntityResolver
extends Object
implements EntityResolver

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

Version:
$Id: XmlEntityResolver.java 1705 2008-09-02 13:14:55Z adriana $

Constructor Summary
XmlEntityResolver()
           
 
Method Summary
 String getDtdFileName(String thePublicId, String theSystemId)
          Tries to decide the file name of a DTD from the public and system id.
 InputSource resolveEntity(String thePublicId, 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 InputSource resolveEntity(String thePublicId,
                                 String theSystemId)
                          throws SAXException,
                                 IOException

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

getDtdFileName

public String getDtdFileName(String thePublicId,
                             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-2012 Codehaus. All Rights Reserved.