Package org.xmlunit.util
Class XPathFactoryConfigurer
java.lang.Object
org.xmlunit.util.XPathFactoryConfigurer
Configures XpathFactories.
- Since:
- XMLUnit 2.10.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for a XPathFactoryConfigurer. -
Field Summary
Modifier 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. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder for XPathFactoryConfigurers.configure
(XPathFactory factory) Applies the current configuration.
-
Field Details
-
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.
-
-
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
-