Package org.dspace.app.util
Class XMLUtils.PathRestrictedEntityResolver
java.lang.Object
org.dspace.app.util.XMLUtils.PathRestrictedEntityResolver
- All Implemented Interfaces:
EntityResolver
- Enclosing class:
- XMLUtils
This entity resolver accepts one or more path strings in its
constructor and throws a SAXException if the entity systemID
is not within the allowed path (or a subdirectory).
If no parameters are passed, then this effectively disallows
any external entity resolution.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PathRestrictedEntityResolver
-
-
Method Details
-
resolveEntity
- Specified by:
resolveEntityin interfaceEntityResolver- Throws:
SAXExceptionIOException
-