Package org.geotools.util
Class DefaultEntityResolver
Object
DefaultEntityResolver
- All Implemented Interfaces:
Serializable,EntityResolver,EntityResolver2
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringLocation ofhttp://inspire.ec.europa.eu/schemas/XSD documents for INSPIRE programstatic final DefaultEntityResolverSingleton instance of DefaultEntityResolver.static Stringstatic StringLocation of Open Geospatial Consortium schemas for OGC OpenGIS standardsstatic Stringstatic StringLocation of W3C schema documents (for xlink, etc...) -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOGCInspireSchemasEntityResolver willing to resolve common ogc and w3c entities. -
Method Summary
Modifier and TypeMethodDescriptiongetExternalSubset(String name, String baseURI) resolveEntity(String publicId, String systemId) resolveEntity(String name, String publicId, String baseURI, String systemId) toString()
-
Field Details
-
OGC1
Location of Open Geospatial Consortium schemas for OGC OpenGIS standards -
OGC2
-
OGC
-
INSPIRE
Location ofhttp://inspire.ec.europa.eu/schemas/XSD documents for INSPIRE program -
W3C
Location of W3C schema documents (for xlink, etc...) -
INSTANCE
Singleton instance of DefaultEntityResolver.
-
-
Constructor Details
-
DefaultEntityResolver
protected DefaultEntityResolver()OGCInspireSchemasEntityResolver willing to resolve common ogc and w3c entities.
-
-
Method Details
-
resolveEntity
- Specified by:
resolveEntityin interfaceEntityResolver- 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
-