public static class XPathFactoryConfigurer.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
XPathFactoryConfigurer |
build()
Builds a XPathFactoryConfigurer.
|
XPathFactoryConfigurer.Builder |
withExtensionFunctionsDisabled()
Configures the factory to not enable extension functions.
|
XPathFactoryConfigurer.Builder |
withFeature(String key,
boolean value)
Configures the factory with the given feature, causes an
exception in
XPathFactoryConfigurer.configure(javax.xml.xpath.XPathFactory) if the feature is not
supported. |
XPathFactoryConfigurer.Builder |
withProperty(String key,
String value)
Configures the factory with the given property, causes an
exception in
XPathFactoryConfigurer.configure(javax.xml.xpath.XPathFactory) if the property is not
supported. |
XPathFactoryConfigurer.Builder |
withSafeFeature(String key,
boolean value)
Configures the factory with the given feature if it is
supported.
|
XPathFactoryConfigurer.Builder |
withSafeProperty(String key,
String value)
Configures the factory with the given property if it is
supported.
|
XPathFactoryConfigurer.Builder |
withSecureProcessingEnabled()
Configures the factory to enable secure processing which disables all external access as well as execution of
extension functions.
|
public XPathFactoryConfigurer build()
public XPathFactoryConfigurer.Builder withProperty(String key, String value)
XPathFactoryConfigurer.configure(javax.xml.xpath.XPathFactory) if the property is not
supported.
This method will not do anything if XPathFactory doesn't support the setPropery method which has
been added with Java 18.
key - key of the property to be setvalue - value for the property to setpublic XPathFactoryConfigurer.Builder withSafeProperty(String key, String value)
This method will not do anything if XPathFactory doesn't support the setPropery method which has
been added with Java 18.
key - key of the property to be setvalue - value for the property to setpublic XPathFactoryConfigurer.Builder withFeature(String key, boolean value)
XPathFactoryConfigurer.configure(javax.xml.xpath.XPathFactory) if the feature is not
supported.key - key of the feature to be setvalue - value for the feature to setpublic XPathFactoryConfigurer.Builder withSafeFeature(String key, boolean value)
key - key of the feature to be setvalue - value for the feature to setpublic XPathFactoryConfigurer.Builder withExtensionFunctionsDisabled()
public XPathFactoryConfigurer.Builder withSecureProcessingEnabled()
Copyright © 2001–2025 XMLUnit. All rights reserved.