1 /*
2 * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
363 * that process XML/XSD/XSL with external references.
364 * </blockquote>
365 *
366 * <p>
367 * <b>Granting all access:</b> the keyword "all" grants permission to all protocols.
368 *
369 * <p>
370 * <b>System Property:</b> The value of this property can be set or overridden by
371 * system property {@code javax.xml.accessExternalStylesheet}
372 *
373 * <p>
374 * <b>jaxp.properties:</b> This configuration file is in standard
375 * {@link java.util.Properties} format and typically located in the {@code conf}
376 * directory of the Java installation. If the file exists and the system
377 * property is specified, its value will be used to override the default
378 * of the property.
379 *
380 * @since 1.7
381 */
382 public static final String ACCESS_EXTERNAL_STYLESHEET = "http://javax.xml.XMLConstants/property/accessExternalStylesheet";
383
384 }
| 1 /*
2 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
363 * that process XML/XSD/XSL with external references.
364 * </blockquote>
365 *
366 * <p>
367 * <b>Granting all access:</b> the keyword "all" grants permission to all protocols.
368 *
369 * <p>
370 * <b>System Property:</b> The value of this property can be set or overridden by
371 * system property {@code javax.xml.accessExternalStylesheet}
372 *
373 * <p>
374 * <b>jaxp.properties:</b> This configuration file is in standard
375 * {@link java.util.Properties} format and typically located in the {@code conf}
376 * directory of the Java installation. If the file exists and the system
377 * property is specified, its value will be used to override the default
378 * of the property.
379 *
380 * @since 1.7
381 */
382 public static final String ACCESS_EXTERNAL_STYLESHEET = "http://javax.xml.XMLConstants/property/accessExternalStylesheet";
383
384
385 /**
386 * Feature: useCatalog
387 *
388 * <p>
389 * Instructs XML processors to use XML Catalogs to resolve entity references.
390 * Catalogs may be set through JAXP factories, system properties, or
391 * jaxp.properties by using the {@code javax.xml.catalog.files} property
392 * defined in {@link javax.xml.catalog.CatalogFeatures}.
393 * The following code enables Catalog on SAX parser:
394 * <pre>{@code
395 * SAXParserFactory spf = SAXParserFactory.newInstance();
396 * spf.setFeature(XMLConstants.USE_CATALOG, true);
397 * SAXParser parser = spf.newSAXParser();
398 * parser.setProperty(CatalogFeatures.Feature.FILES.getPropertyName(), "catalog.xml");
399 * }</pre>
400 *
401 * <p>
402 * <b>Value:</b> a boolean. If the value is true, and a catalog is set,
403 * the XML parser will resolve external references using
404 * {@link javax.xml.catalog.CatalogResolver}. If the value is false,
405 * XML Catalog is ignored even if one is set. The default value is true.
406 *
407 * <p>
408 * <b>System Property:</b> The value of this property can be set or overridden by
409 * system property {@code javax.xml.useCatalog}
410 *
411 * <p>
412 * <b>jaxp.properties:</b> This configuration file is in standard
413 * {@link java.util.Properties} format and typically located in the {@code conf}
414 * directory of the Java installation. If the file exists and the system
415 * property is specified, its value will be used to override the default
416 * value of the property.
417 *
418 * @since 9
419 */
420 public static final String USE_CATALOG = "http://javax.xml.XMLConstants/feature/useCatalog";
421
422 }
|