Package org.xmlunit.util
Class TransformerFactoryConfigurer
java.lang.Object
org.xmlunit.util.TransformerFactoryConfigurer
Configures TransformerFactories.
- Since:
- XMLUnit 2.6.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for a TransformerFactoryConfigurer. -
Field Summary
Modifier and TypeFieldDescriptionstatic final TransformerFactoryConfigurer
The default instance which disables DTD loading and extension functions but still allows loading of external stylesheets.static final TransformerFactoryConfigurer
The instance which disables DTD loading but still allows loading of external stylesheets and extension functions.static final TransformerFactoryConfigurer
The instance which disables DTD loading as well as loading of external stylesheets or extension functions.static final TransformerFactoryConfigurer
The instance which disables DTD loading as well as loading of external stylesheets but allows extension functions.static final TransformerFactoryConfigurer
The instance which enables secure processing thus disables all external access as well as execution of extension functions. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder for TransformerFactoryConfigurers.configure
(TransformerFactory factory) Applies the current configuration.
-
Field Details
-
Default
The default instance which disables DTD loading and extension functions but still allows loading of external stylesheets. -
SecureProcessing
The instance which enables secure processing thus disables all external access as well as execution of extension functions.- Since:
- XMLUnit 2.10.0
-
NoExternalAccess
The instance which disables DTD loading as well as loading of external stylesheets or extension functions. -
NoDtdButExtensionFunctions
The instance which disables DTD loading but still allows loading of external stylesheets and extension functions.- Since:
- XMLUnit 2.10.0
-
NoExternalAccessButExtensionFunctions
The instance which disables DTD loading as well as loading of external stylesheets but allows extension functions.- Since:
- XMLUnit 2.10.0
-
-
Method Details
-
configure
Applies the current configuration.- Parameters:
factory
- the factory to configure- Returns:
- the configured factory
- Throws:
ConfigurationException
- if any of the attributes or features set is not supported.
-
builder
Creates a builder for TransformerFactoryConfigurers.- Returns:
- a fresh builder
-