JSF-Spring

de.mindmatters.faces
Class FacesDtdResolver

java.lang.Object
  extended by de.mindmatters.faces.FacesDtdResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

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

EntityResolver implementation for the JSF 1.0 and JSF 1.1 DTD, to load the DTD from the jsf-spring class path (or JAR file).

Fetches "web-facesconfig_1_0.dtd" or "web-facesconfig_1_0.dtd" from the class path resource "/de/mindmatters/faces/web-facesconfig_1_0.dtd" or "/de/mindmatters/faces/web-facesconfig_1_1.dtd", no matter whether specified as some local URL that includes "web-facesconfig" in the DTD name or as "http://java.sun.com/dtd/web-facesconfig_1_0.dtd" and "http://java.sun.com/dtd/web-facesconfig_1_1.dtd" respectively.

Author:
Andreas Kuhrwahl

Field Summary
protected  org.apache.commons.logging.Log logger
          For logging.
 
Constructor Summary
FacesDtdResolver()
           
 
Method Summary
 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
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
For logging.

Constructor Detail

FacesDtdResolver

public FacesDtdResolver()
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      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

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG