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 DocumentBuilderFactory
createSecureDocBuilderFactory()
Creates an instance ofDocumentBuilderFactory
class with enabledXMLConstants.FEATURE_SECURE_PROCESSING
property.
-
-
-
Method Detail
-
createSecureDocBuilderFactory
public static DocumentBuilderFactory createSecureDocBuilderFactory() throws ParserConfigurationException
Creates an instance ofDocumentBuilderFactory
class with enabledXMLConstants.FEATURE_SECURE_PROCESSING
property. 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
-
-