Top Fields Constructors Methods
org.eclipse.persistence.internal.helper

public Class XMLHelper

extends Object
Class Inheritance
Imports
javax.xml.XMLConstants, javax.xml.parsers.DocumentBuilderFactory, .ParserConfigurationException, .SAXParserFactory, javax.xml.transform.TransformerConfigurationException, .TransformerFactory, javax.xml.validation.SchemaFactory, javax.xml.xpath.XPathFactory, .XPathFactoryConfigurationException, org.eclipse.persistence.internal.oxm.OXMSystemProperties, org.eclipse.persistence.internal.oxm.record.XMLReader, org.eclipse.persistence.internal.security.PrivilegedAccessHelper, org.eclipse.persistence.logging.AbstractSessionLog, .SessionLog, org.xml.sax.SAXException, .SAXNotRecognizedException, .SAXNotSupportedException

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
private static final String
private static final String
private static final boolean
XML_SECURITY_DISABLED

If true XML security features when parsing XML documents will be disabled.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static SchemaFactory
allowExternalAccess(SchemaFactory sf, String value, boolean disableSecureProcessing)

public static TransformerFactory
allowExternalAccess(TransformerFactory tf, String value, boolean disableSecureProcessing)

public static DocumentBuilderFactory
allowExternalAccess(DocumentBuilderFactory dbf, String value, boolean disableSecureProcessing)

public static XMLReader
allowExternalAccess(XMLReader xmlReader, String value, boolean disableSecureProcessing)

public static SchemaFactory
allowExternalDTDAccess(SchemaFactory sf, String value, boolean disableSecureProcessing)

public static DocumentBuilderFactory
allowExternalDTDAccess(DocumentBuilderFactory dbf, String value, boolean disableSecureProcessing)

public static XMLReader
allowExternalDTDAccess(XMLReader xmlReader, String value, boolean disableSecureProcessing)

public static DocumentBuilderFactory
createDocumentBuilderFactory(boolean disableSecureProcessing)

Returns properly configured (e.g. security features) factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true

public static SAXParserFactory
createParserFactory(boolean disableSecureProcessing)

Returns properly configured (e.g. security features) parser factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true

public static SchemaFactory
createSchemaFactory(final String language, boolean disableSecureProcessing)

Returns properly configured (e.g. security features) schema factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true

public static TransformerFactory
createTransformerFactory(boolean disableSecureProcessing)

Returns properly configured (e.g. security features) factory - securityProcessing == is set based on security processing property, default is true

public static XPathFactory
createXPathFactory(boolean disableSecureProcessing)

Returns properly configured (e.g. security features) factory - securityProcessing == is set based on security processing property, default is true

private static boolean
isXMLSecurityDisabled(boolean runtimeSetting)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ACCESS_EXTERNAL_DTDback to summary
public static final String ACCESS_EXTERNAL_DTD
ACCESS_EXTERNAL_SCHEMAback to summary
public static final String ACCESS_EXTERNAL_SCHEMA
PROP_ACCESS_EXTERNAL_DTDback to summary
private static final String PROP_ACCESS_EXTERNAL_DTD
PROP_ACCESS_EXTERNAL_SCHEMAback to summary
private static final String PROP_ACCESS_EXTERNAL_SCHEMA
XML_SECURITY_DISABLEDback to summary
private static final boolean XML_SECURITY_DISABLED

If true XML security features when parsing XML documents will be disabled. The default value is false. Boolean

Since
2.6.3

Constructor Detail

XMLHelperback to summary
public XMLHelper()

Method Detail

allowExternalAccessback to summary
public static SchemaFactory allowExternalAccess(SchemaFactory sf, String value, boolean disableSecureProcessing)
allowExternalAccessback to summary
public static TransformerFactory allowExternalAccess(TransformerFactory tf, String value, boolean disableSecureProcessing)
allowExternalAccessback to summary
public static DocumentBuilderFactory allowExternalAccess(DocumentBuilderFactory dbf, String value, boolean disableSecureProcessing)
allowExternalAccessback to summary
public static XMLReader allowExternalAccess(XMLReader xmlReader, String value, boolean disableSecureProcessing)
allowExternalDTDAccessback to summary
public static SchemaFactory allowExternalDTDAccess(SchemaFactory sf, String value, boolean disableSecureProcessing)
allowExternalDTDAccessback to summary
public static DocumentBuilderFactory allowExternalDTDAccess(DocumentBuilderFactory dbf, String value, boolean disableSecureProcessing)
allowExternalDTDAccessback to summary
public static XMLReader allowExternalDTDAccess(XMLReader xmlReader, String value, boolean disableSecureProcessing)
createDocumentBuilderFactoryback to summary
public static DocumentBuilderFactory createDocumentBuilderFactory(boolean disableSecureProcessing) throws IllegalStateException

Returns properly configured (e.g. security features) factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true

createParserFactoryback to summary
public static SAXParserFactory createParserFactory(boolean disableSecureProcessing) throws IllegalStateException

Returns properly configured (e.g. security features) parser factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true

createSchemaFactoryback to summary
public static SchemaFactory createSchemaFactory(final String language, boolean disableSecureProcessing) throws IllegalStateException

Returns properly configured (e.g. security features) schema factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true

createTransformerFactoryback to summary
public static TransformerFactory createTransformerFactory(boolean disableSecureProcessing) throws IllegalStateException

Returns properly configured (e.g. security features) factory - securityProcessing == is set based on security processing property, default is true

createXPathFactoryback to summary
public static XPathFactory createXPathFactory(boolean disableSecureProcessing) throws IllegalStateException

Returns properly configured (e.g. security features) factory - securityProcessing == is set based on security processing property, default is true

isXMLSecurityDisabledback to summary
private static boolean isXMLSecurityDisabled(boolean runtimeSetting)