public class XMLCatalogResolverExtension extends Object implements URIResolverExtension
DEFAULT| Constructor and Description |
|---|
XMLCatalogResolverExtension() |
| Modifier and Type | Method and Description |
|---|---|
String |
expandSystemId(String path) |
String[] |
getCatalogs()
Get the XML catalogs.
|
String |
getName() |
void |
refreshCatalogs()
Refresh the XML catalogs.
|
String |
resolve(String baseURI,
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 URIResolverExtensionpublic String resolve(String baseURI, String publicId, String systemId)
resolve in interface URIResolverExtensionbaseURI - - 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.XMLEntityResolverresolveEntity in interface URIResolverExtensionorg.apache.xerces.xni.XNIExceptionIOExceptionpublic void setRootUri(String rootUri)
rootUri - the root URIpublic boolean setCatalogs(String[] catalogs)
catalogs - the catalog path array.public void refreshCatalogs()
public String[] getCatalogs()
Copyright © 2024. All rights reserved.