com.atlassian.jira.util.xml
Class SecureXmlEntityResolver

java.lang.Object
  extended by com.atlassian.jira.util.xml.SecureXmlEntityResolver
All Implemented Interfaces:
EntityResolver

public final class SecureXmlEntityResolver
extends Object
implements EntityResolver

An EntityResolver that refuses to resolve references to external xml entities by unconditionally returning an InputSource wrapping an empty InputStream.


Constructor Summary
SecureXmlEntityResolver()
           
 
Method Summary
 InputSource resolveEntity(String publicId, String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureXmlEntityResolver

public SecureXmlEntityResolver()
Method Detail

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
Specified by:
resolveEntity in interface EntityResolver


Copyright © 2002-2014 Atlassian. All Rights Reserved.