A catalog implementation where the xml:base is defined externally
of the catalog XML, allowing for runtime determination of the xml:base
(such as pointing to the contents of a remote location)
This is a temporary Catalog implementation, and should be removed once
all of our usages of servlet-api-<ver>.jar have their own
catalog.xml files.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Stream | catalogs()
Implements javax. nextCatalog entries in the current catalog, and as the input of
catalog files excluding the current catalog (that is, the first in the
input list) when the Catalog object is created by the CatalogManager.
|
| public static BaseClassCatalog | |
| public String | matchPublic(String
the public identifier of the entity to be matched publicId)Implements javax. |
| public String | matchSystem(String
the system identifier of the entity to be matched systemId)Implements javax. |
| public String | matchURI(String
the URI reference of the entity to be matched uri)Implements javax. |
| public InputSource | resolveEntity(String
The public identifier of the external entity
being referenced, or null if none was supplied. publicId, String The system identifier of the external entity
being referenced. systemId)Implements org. org.
|
| publicIdMap | back to summary |
|---|---|
| private final Map<String, String> publicIdMap | |
| systemIdMap | back to summary |
|---|---|
| private final Map<String, String> systemIdMap | |
| BaseClassCatalog | back to summary |
|---|---|
| private BaseClassCatalog(Map<String, String> publicIdMap, Map<String, String> systemIdMap) | |
| catalogs | back to summary |
|---|---|
| public Stream Implements javax. Doc from javax. Returns a sequential Stream of alternative Catalogs specified using the
The order of Catalogs in the returned stream is the same as the order
in which the corresponding | |
| load | back to summary |
|---|---|
| public static BaseClassCatalog load(URI uriToCatalogXml, Class<?> baseClass) throws IOException | |
| matchPublic | back to summary |
|---|---|
| public String matchPublic(String publicId) Implements javax. Doc from javax. Attempts to find a matching entry in the catalog by publicId. The method
searches through the public-type entries, including
Refer to the description about
Feature PREFER in the table Catalog Features in class
Resolution follows the steps listed below:
| |
| matchSystem | back to summary |
|---|---|
| public String matchSystem(String systemId) Implements javax. Doc from javax. Attempts to find a matching entry in the catalog by systemId.
The method searches through the system-type entries, including
Resolution follows the steps listed below:
| |
| matchURI | back to summary |
|---|---|
| public String matchURI(String uri) Implements javax. Doc from javax. Attempts to find a matching entry in the catalog by the uri element.
The method searches through the uri-type entries, including
Resolution follows the steps listed below:
| |
| resolveEntity | back to summary |
|---|---|
| public InputSource resolveEntity(String publicId, String systemId) Implements org. Implementation of
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Map | |
| public BaseClassCatalog |
| baseClass | back to summary |
|---|---|
| private final Class<?> baseClass | |
| catalogUri | back to summary |
|---|---|
| private final URI catalogUri | |
| CatalogReader | back to summary |
|---|---|
| public CatalogReader(URI uriToCatalogXml, Class<?> baseClass) | |
| getMapping | back to summary |
|---|---|
| private Map | |
| parse | back to summary |
|---|---|
| public BaseClassCatalog parse() throws IOException | |