org.rhq.core.pluginapi.util
Class SelectiveSkippingEntityResolver
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectiveSkippingEntityResolver
public SelectiveSkippingEntityResolver(String systemIdsToSkipRegex)
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-2012 Red Hat, Inc.. All Rights Reserved.