public class MOASPSSEntityResolver extends Object implements EntityResolver
EntityResolver
that looks up entities stored as
local resources.
The following DTDs are mapped to local resources:
For all other resources, an attempt is made to resolve them as resources,
either absolute or relative to Constants.SCHEMA_ROOT
.
Constructor and Description |
---|
MOASPSSEntityResolver() |
public InputSource resolveEntity(String publicId, String systemId) throws SAXException
systemId
parameter is used to perform the lookup of the
entity as a resource, either by interpreting the systemId
as
an absolute resource path, or by appending the last path component of
systemId
to Constants.SCHEMA_ROOT
.resolveEntity
in interface EntityResolver
publicId
- The public ID of the resource.systemId
- The system ID of the resource.InputSource
from which the entity can be read, or
null
, if the entity could not be found.SAXException
EntityResolver.resolveEntity(java.lang.String, java.lang.String)
Copyright © 2016. All rights reserved.