93 *
94 * <tr>
95 * <td>xml.catalog.allowPI</td>
96 * <td>allow-oasis-xml-catalog-pi</td>
97 * <td>If the source document contains "oasis-xml-catalog" processing instructions,
98 * should they be used?</td>
99 * </tr>
100 *
101 * <tr>
102 * <td>xml.catalog.className</td>
103 * <td>catalog-class-name</td>
104 * <td>If you're using the convenience classes
105 * <tt>com.sun.org.apache.xml.internal.resolver.tools.*</tt>), this setting
106 * allows you to specify an alternate class name to use for the underlying
107 * catalog.</td>
108 * </tr>
109 * </tbody>
110 * </table>
111 *
112 * @see Catalog
113 *
114 * @author Norman Walsh
115 * <a href="mailto:Norman.Walsh@Sun.COM">Norman.Walsh@Sun.COM</a>
116 *
117 * @version 1.0
118 */
119
120 public class CatalogManager {
121 private static final String pFiles = "xml.catalog.files";
122 private static final String pVerbosity = "xml.catalog.verbosity";
123 private static final String pPrefer = "xml.catalog.prefer";
124 private static final String pStatic = "xml.catalog.staticCatalog";
125 private static final String pAllowPI = "xml.catalog.allowPI";
126 private static final String pClassname = "xml.catalog.className";
127 private static final String pIgnoreMissing = "xml.catalog.ignoreMissing";
128
129 /** A static CatalogManager instance for sharing */
130 private static final CatalogManager staticManager = new CatalogManager();
131
132 /** The bootstrap resolver to use when loading XML Catalogs. */
133 private BootstrapResolver bResolver = new BootstrapResolver();
134
135 /** Flag to ignore missing property files and/or properties */
136 private boolean ignoreMissingProperties
137 = (SecuritySupport.getSystemProperty(pIgnoreMissing) != null
138 || SecuritySupport.getSystemProperty(pFiles) != null);
139
|
93 *
94 * <tr>
95 * <td>xml.catalog.allowPI</td>
96 * <td>allow-oasis-xml-catalog-pi</td>
97 * <td>If the source document contains "oasis-xml-catalog" processing instructions,
98 * should they be used?</td>
99 * </tr>
100 *
101 * <tr>
102 * <td>xml.catalog.className</td>
103 * <td>catalog-class-name</td>
104 * <td>If you're using the convenience classes
105 * <tt>com.sun.org.apache.xml.internal.resolver.tools.*</tt>), this setting
106 * allows you to specify an alternate class name to use for the underlying
107 * catalog.</td>
108 * </tr>
109 * </tbody>
110 * </table>
111 *
112 * @see Catalog
113 * @deprecated The JDK internal Catalog API in package
114 * {@code com.sun.org.apache.xml.internal.resolver}
115 * is encapsulated in JDK 9. The entire implementation under the package is now
116 * deprecated and subject to removal in a future release. Users of the API
117 * should migrate to the {@linkplain javax.xml.catalog new public API}.
118 * <p>
119 * The new Catalog API is supported throughout the JDK XML Processors, which allows
120 * the use of Catalog by simply setting a path to a Catalog file as a property.
121 *
122 * @author Norman Walsh
123 * <a href="mailto:Norman.Walsh@Sun.COM">Norman.Walsh@Sun.COM</a>
124 *
125 * @version 1.0
126 */
127 @Deprecated(since="9", forRemoval=true)
128 public class CatalogManager {
129 private static final String pFiles = "xml.catalog.files";
130 private static final String pVerbosity = "xml.catalog.verbosity";
131 private static final String pPrefer = "xml.catalog.prefer";
132 private static final String pStatic = "xml.catalog.staticCatalog";
133 private static final String pAllowPI = "xml.catalog.allowPI";
134 private static final String pClassname = "xml.catalog.className";
135 private static final String pIgnoreMissing = "xml.catalog.ignoreMissing";
136
137 /** A static CatalogManager instance for sharing */
138 private static final CatalogManager staticManager = new CatalogManager();
139
140 /** The bootstrap resolver to use when loading XML Catalogs. */
141 private BootstrapResolver bResolver = new BootstrapResolver();
142
143 /** Flag to ignore missing property files and/or properties */
144 private boolean ignoreMissingProperties
145 = (SecuritySupport.getSystemProperty(pIgnoreMissing) != null
146 || SecuritySupport.getSystemProperty(pFiles) != null);
147
|