Class PreventLocalEntityResolver

Object
PreventLocalEntityResolver
All Implemented Interfaces:
Serializable, EntityResolver3, EntityResolver, EntityResolver2

public class PreventLocalEntityResolver extends Object implements EntityResolver3, Serializable
EntityResolver implementation to prevent use external entity resolution to local files.

When parsing an XML entity reference to a local file a SAXException is thrown, which can be handled appropriately.

For a more restrictive EntityResolver DefaultEntityResolver is recommended.

Author:
Davide Savazzi - geo-solutions.it
See Also: