org.tuckey.web.filters.validation
Class ValidationEntityResolver

java.lang.Object
  extended by org.tuckey.web.filters.validation.ValidationEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

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

Version:
$Revision: 1 $ $Date: 2006-07-12 08:07:49 +1200 (Wed, 12 Jul 2006) $
Author:
Paul Tuckey

Constructor Summary
ValidationEntityResolver()
          Will setup the entity resolver, dtd's are stores in clas structure to save fetching over the web.
 
Method Summary
 ValidationDoctype getDoctype()
          the doctype.
static void register(java.lang.String publicId, java.lang.String entityURL)
          Cache the entity lookup.
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Resolve the requested external entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationEntityResolver

public ValidationEntityResolver()
                         throws java.io.FileNotFoundException
Will setup the entity resolver, dtd's are stores in clas structure to save fetching over the web.

Throws:
java.io.FileNotFoundException
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException
Resolve the requested external entity.

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Parameters:
publicId - The public identifier of the entity being referenced
systemId - The system identifier of the entity being referenced
Throws:
org.xml.sax.SAXException - if a parsing exception occurs

register

public static void register(java.lang.String publicId,
                            java.lang.String entityURL)
                     throws java.net.MalformedURLException
Cache the entity lookup.

Throws:
java.net.MalformedURLException

getDoctype

public ValidationDoctype getDoctype()
the doctype.

Returns:
ValidationDoctype