Class PreventLocalEntityResolver

Object
PreventLocalEntityResolver
All Implemented Interfaces:
Serializable, EntityResolver, EntityResolver2

public class PreventLocalEntityResolver extends Object implements EntityResolver2, 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.

This implementation is both recommended and the default returned by GeoTools#getEntityResolver().

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