Package org.xmlunit.util
Class XPathFactoryConfigurer
java.lang.Object
org.xmlunit.util.XPathFactoryConfigurer
Configures XpathFactories.
- Since:
- XMLUnit 2.10.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for a XPathFactoryConfigurer. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final XPathFactoryConfigurer
The default instance which disables extension functions.static final XPathFactoryConfigurer
The instance which enables secure processing thus disables execution of extension functions.private static final Method
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder for XPathFactoryConfigurers.configure
(XPathFactory factory) Applies the current configuration.private static void
setProperty
(XPathFactory fac, String name, String value)
-
Field Details
-
propertys
-
safePropertys
-
features
-
safeFeatures
-
Default
The default instance which disables extension functions.In order to disable extension functions XPathFactory#setProperty needs to exists which requires Java18 or newer.
SecureProcessing
should be available on any JDK. -
SecureProcessing
The instance which enables secure processing thus disables execution of extension functions. -
setPropertyMethod
-
-
Constructor Details
-
XPathFactoryConfigurer
-
-
Method Details
-
configure
Applies the current configuration.- Parameters:
factory
- the factory to configure- Returns:
- the configured factory
- Throws:
ConfigurationException
- if any of the propertys or features set is not supported.
-
builder
Creates a builder for XPathFactoryConfigurers.- Returns:
- a fresh builder
-
setProperty
- Throws:
Exception
-