Package org.geotools.util
Class DefaultEntityResolver
- Object
-
- DefaultEntityResolver
-
- All Implemented Interfaces:
Serializable,EntityResolver,EntityResolver2
public class DefaultEntityResolver extends Object implements EntityResolver2, Serializable
Entity Resolver which allows to resolve on OGC & INSPIRE schemas, roughly inspired from the `AllowListEntityResolver` class from GeoServer.In addition to XSD entities, we also have standards like WMS 1.1.1 making use of DTD definitions.
- Author:
- Pierre Mauduit (Camptocamp)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringINSPIRELocation ofhttp://inspire.ec.europa.eu/schemas/XSD documents for INSPIRE programstatic DefaultEntityResolverINSTANCESingleton instance of DefaultEntityResolver.static StringOGCstatic StringOGC1Location of Open Geospatial Consortium schemas for OGC OpenGIS standardsstatic StringOGC2static StringW3CLocation of W3C schema documents (for xlink, etc...)
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultEntityResolver()OGCInspireSchemasEntityResolver willing to resolve common ogc and w3c entities.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSourcegetExternalSubset(String name, String baseURI)InputSourceresolveEntity(String publicId, String systemId)InputSourceresolveEntity(String name, String publicId, String baseURI, String systemId)StringtoString()
-
-
-
Field Detail
-
OGC1
public static String OGC1
Location of Open Geospatial Consortium schemas for OGC OpenGIS standards
-
OGC2
public static String OGC2
-
OGC
public static String OGC
-
INSPIRE
public static String INSPIRE
Location ofhttp://inspire.ec.europa.eu/schemas/XSD documents for INSPIRE program
-
W3C
public static String W3C
Location of W3C schema documents (for xlink, etc...)
-
INSTANCE
public static final DefaultEntityResolver INSTANCE
Singleton instance of DefaultEntityResolver.
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
- Specified by:
resolveEntityin interfaceEntityResolver- Throws:
SAXExceptionIOException
-
getExternalSubset
public InputSource getExternalSubset(String name, String baseURI) throws SAXException, IOException
- 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
-
-