public class XMLCatalogResolverExtension extends Object implements URIResolverExtension
Constructor and Description |
---|
XMLCatalogResolverExtension() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
void |
refreshCatalogs()
Refresh the XML catalogs.
|
String |
resolve(String baseLocation,
String publicId,
String systemId) |
org.apache.xerces.xni.parser.XMLInputSource |
resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier) |
boolean |
setCatalogs(String[] catalogs)
Initialize catalogs path.
|
void |
setRootUri(String rootUri)
Set the root URI
|
public String getName()
getName
in interface URIResolverExtension
public String resolve(String baseLocation, String publicId, String systemId)
resolve
in interface URIResolverExtension
baseLocation
- - the location of the resource that contains the uripublicId
- - an optional public identifier (i.e. namespace name), or
null if nonesystemId
- - an absolute or relative URI, or null if nonepublic org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier) throws org.apache.xerces.xni.XNIException, IOException
resolveEntity
in interface org.apache.xerces.xni.parser.XMLEntityResolver
resolveEntity
in interface URIResolverExtension
org.apache.xerces.xni.XNIException
IOException
public void setRootUri(String rootUri)
rootUri
- the root URIpublic boolean setCatalogs(String[] catalogs)
catalogs
- the catalog path array.public void refreshCatalogs()
Copyright © 2021. All rights reserved.