org.codehaus.cargo.module
Class XmlEntityResolver
java.lang.Object
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlEntityResolver
public XmlEntityResolver()
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 idtheSystemId
- the system id
- Returns:
- the file name
Copyright © 2004-2012 Codehaus. All Rights Reserved.