com.mebigfatguy.tomailer
Class ToMailerEntityResolver
java.lang.Object
com.mebigfatguy.tomailer.ToMailerEntityResolver
- All Implemented Interfaces:
- org.xml.sax.EntityResolver
public class ToMailerEntityResolver
- extends java.lang.Object
- implements org.xml.sax.EntityResolver
resolves entities around html strict, transitional and frameset dtds, along
with the entity definitions so that the code doesn't access the w3.org definitions,
which will deny access with 503 errors.
Method Summary |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
the main interface method of the EntityResolver, if it's one of the primary dtds,
return the local cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToMailerEntityResolver
public ToMailerEntityResolver()
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException,
java.io.IOException
- the main interface method of the EntityResolver, if it's one of the primary dtds,
return the local cache. Otherwise it just uses the default resolver.
- Specified by:
resolveEntity
in interface org.xml.sax.EntityResolver
- Parameters:
publicId
- the constant that defines the specified dtdsystemId
- the url of the default implementation (ignored)
- Returns:
- a stream that represents the desired dtd
- Throws:
org.xml.sax.SAXException
java.io.IOException
Copyright © 2009 MeBigFatGuy.com. All Rights Reserved.