Package org.xmlunit.util
Class TransformerFactoryConfigurer
- java.lang.Object
-
- org.xmlunit.util.TransformerFactoryConfigurer
-
public class TransformerFactoryConfigurer extends Object
Configures TransformerFactories.- Since:
- XMLUnit 2.6.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransformerFactoryConfigurer.BuilderBuilder for a TransformerFactoryConfigurer.
-
Field Summary
Fields Modifier and Type Field Description static TransformerFactoryConfigurerDefaultThe default instance which disables DTD loading and extension functions but still allows loading of external stylesheets.static TransformerFactoryConfigurerNoDtdButExtensionFunctionsThe instance which disables DTD loading but still allows loading of external stylesheets and extension functions.static TransformerFactoryConfigurerNoExternalAccessThe instance which disables DTD loading as well as loading of external stylesheets or extension functions.static TransformerFactoryConfigurerNoExternalAccessButExtensionFunctionsThe instance which disables DTD loading as well as loading of external stylesheets but allows extension functions.static TransformerFactoryConfigurerSecureProcessingThe instance which enables secure processing thus disables all external access as well as execution of extension functions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransformerFactoryConfigurer.Builderbuilder()Creates a builder for TransformerFactoryConfigurers.TransformerFactoryconfigure(TransformerFactory factory)Applies the current configuration.
-
-
-
Field Detail
-
Default
public static final TransformerFactoryConfigurer Default
The default instance which disables DTD loading and extension functions but still allows loading of external stylesheets.
-
SecureProcessing
public static final TransformerFactoryConfigurer 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
public static final TransformerFactoryConfigurer NoExternalAccess
The instance which disables DTD loading as well as loading of external stylesheets or extension functions.
-
NoDtdButExtensionFunctions
public static final TransformerFactoryConfigurer NoDtdButExtensionFunctions
The instance which disables DTD loading but still allows loading of external stylesheets and extension functions.- Since:
- XMLUnit 2.10.0
-
NoExternalAccessButExtensionFunctions
public static final TransformerFactoryConfigurer NoExternalAccessButExtensionFunctions
The instance which disables DTD loading as well as loading of external stylesheets but allows extension functions.- Since:
- XMLUnit 2.10.0
-
-
Method Detail
-
configure
public TransformerFactory configure(TransformerFactory factory)
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
public static TransformerFactoryConfigurer.Builder builder()
Creates a builder for TransformerFactoryConfigurers.- Returns:
- a fresh builder
-
-