Package org.geotools.util
Class PreventEntityResolver
Object
PreventEntityResolver
- All Implemented Interfaces:
Serializable,EntityResolver3,EntityResolver,EntityResolver2
EntityResolver2 implementation that disallows access to any external entity.- Author:
- Jody Garnett (GeoCat)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PreventEntityResolverSingleton instance of PreventLocalEntityResolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPreventEntityResolver does not allow access to any protocols.getExternalSubset(String name, String baseURI) resolveEntity(String publicId, String systemId) resolveEntity(String name, String publicId, String baseURI, String systemId) toString()
-
Field Details
-
INSTANCE
Singleton instance of PreventLocalEntityResolver
-
-
Constructor Details
-
PreventEntityResolver
protected PreventEntityResolver()
-
-
Method Details
-
getAccess
PreventEntityResolver does not allow access to any protocols.This encourages XMLUtils to disable all factory external entity settings.
- Specified by:
getAccessin interfaceEntityResolver3- Returns:
""
-
resolveEntity
- Specified by:
resolveEntityin interfaceEntityResolver- Returns:
nullto request that the parser open a regular URI connection to the system identifier.- Throws:
SAXExceptionIOException
-
getExternalSubset
- Specified by:
getExternalSubsetin interfaceEntityResolver2- Throws:
SAXExceptionIOException
-
resolveEntity
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException - Specified by:
resolveEntityin interfaceEntityResolver2- Throws:
SAXExceptionIOException
-
toString
-