org.rhq.core.pluginapi.util
Class SelectiveSkippingEntityResolver

java.lang.Object
  extended by org.rhq.core.pluginapi.util.SelectiveSkippingEntityResolver
All Implemented Interfaces:
EntityResolver

public class SelectiveSkippingEntityResolver
extends Object
implements EntityResolver

An XML entity resolver that skips resolution of any entities with system IDs that match a specified regular expression. The getDtdAndXsdSkippingInstance() convenience method can be used to return an instance that skips resolution of DTDs and XML schemas.


Constructor Summary
SelectiveSkippingEntityResolver(String systemIdsToSkipRegex)
           
 
Method Summary
static SelectiveSkippingEntityResolver getDtdAndXsdSkippingInstance()
           
 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

SelectiveSkippingEntityResolver

public SelectiveSkippingEntityResolver(String systemIdsToSkipRegex)
Method Detail

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException

getDtdAndXsdSkippingInstance

public static SelectiveSkippingEntityResolver getDtdAndXsdSkippingInstance()


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.