Class XMLParserFactoryProducer
- java.lang.Object
-
- org.pentaho.reporting.libraries.base.util.XMLParserFactoryProducer
-
public class XMLParserFactoryProducer extends Object
-
-
Constructor Summary
Constructors Constructor Description XMLParserFactoryProducer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentBuilderFactorycreateSecureDocBuilderFactory()Creates an instance ofDocumentBuilderFactoryclass with enabledXMLConstants.FEATURE_SECURE_PROCESSINGproperty.
-
-
-
Method Detail
-
createSecureDocBuilderFactory
public static DocumentBuilderFactory createSecureDocBuilderFactory() throws ParserConfigurationException
Creates an instance ofDocumentBuilderFactoryclass with enabledXMLConstants.FEATURE_SECURE_PROCESSINGproperty. Enabling this feature prevents from some XXE attacks (e.g. XML bomb) See PPP-3506 for more details.- Throws:
ParserConfigurationException- if feature can't be enabled
-
-