org.n52.security.common.xml
Class QuietEntityResolver

java.lang.Object
  extended by org.n52.security.common.xml.QuietEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

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

Class QuietEntityResolver supresses the loading of entities in xml documents (like dtds).

Version:
$Revision: $
Author:
Marko Reiprecht Created on 04.06.2008

Constructor Summary
QuietEntityResolver()
           
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Method resolveEntity, returns always an empty input source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuietEntityResolver

public QuietEntityResolver()
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
Method resolveEntity, returns always an empty input source.

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Parameters:
publicId - the publicId.
systemId - the systemId.
Returns:
InputSource.
Throws:
org.xml.sax.SAXException - if error occurs.
java.io.IOException - if error occurs.


Copyright © 2004-2009 52north.org. All Rights Reserved.