public static class TransformerFactoryConfigurer.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TransformerFactoryConfigurer |
build()
Builds a TransformerFactoryConfigurer.
|
TransformerFactoryConfigurer.Builder |
withAttribute(String key,
Object value)
Configures the factory with the given attribute, causes an
exception in
TransformerFactoryConfigurer.configure(javax.xml.transform.TransformerFactory) if the attribute is not
supported. |
TransformerFactoryConfigurer.Builder |
withDTDLoadingDisabled()
Configures the factory to not load any external DTDs.
|
TransformerFactoryConfigurer.Builder |
withExtensionFunctionsDisabled()
Configures the factory to not enable extension functions.
|
TransformerFactoryConfigurer.Builder |
withExternalStylesheetLoadingDisabled()
Configures the factory to not parse any DTDs.
|
TransformerFactoryConfigurer.Builder |
withFeature(String key,
boolean value)
Configures the factory with the given feature, causes an
exception in
TransformerFactoryConfigurer.configure(javax.xml.transform.TransformerFactory) if the feature is not
supported. |
TransformerFactoryConfigurer.Builder |
withSafeAttribute(String key,
Object value)
Configures the factory with the given attribute if it is
supported.
|
TransformerFactoryConfigurer.Builder |
withSafeFeature(String key,
boolean value)
Configures the factory with the given feature if it is
supported.
|
TransformerFactoryConfigurer.Builder |
withSecureProcessingEnabled()
Configures the factory to enable secure processing which disables all external access as well as execution of
extension functions.
|
public TransformerFactoryConfigurer build()
public TransformerFactoryConfigurer.Builder withAttribute(String key, Object value)
TransformerFactoryConfigurer.configure(javax.xml.transform.TransformerFactory) if the attribute is not
supported.key - key of the attribute to be setvalue - value for the attribute to setpublic TransformerFactoryConfigurer.Builder withSafeAttribute(String key, Object value)
key - key of the attribute to be setvalue - value for the attribute to setpublic TransformerFactoryConfigurer.Builder withFeature(String key, boolean value)
TransformerFactoryConfigurer.configure(javax.xml.transform.TransformerFactory) if the feature is not
supported.key - key of the feature to be setvalue - value for the feature to setpublic TransformerFactoryConfigurer.Builder withSafeFeature(String key, boolean value)
key - key of the feature to be setvalue - value for the feature to setpublic TransformerFactoryConfigurer.Builder withDTDLoadingDisabled()
public TransformerFactoryConfigurer.Builder withExternalStylesheetLoadingDisabled()
public TransformerFactoryConfigurer.Builder withExtensionFunctionsDisabled()
public TransformerFactoryConfigurer.Builder withSecureProcessingEnabled()
Copyright © 2001–2025 XMLUnit. All rights reserved.