public class TransformerFactoryConfigurer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TransformerFactoryConfigurer.Builder
Builder for a TransformerFactoryConfigurer.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
attributes |
static TransformerFactoryConfigurer |
Default
The default instance which disables DTD loading but still
allows loading of external stylesheets.
|
private java.util.Map<java.lang.String,java.lang.Boolean> |
features |
static TransformerFactoryConfigurer |
NoExternalAccess
The instance which disables DTD loading as well as loading of
external stylesheets.
|
private java.util.Map<java.lang.String,java.lang.Object> |
safeAttributes |
private java.util.Map<java.lang.String,java.lang.Boolean> |
safeFeatures |
| Modifier | Constructor and Description |
|---|---|
private |
TransformerFactoryConfigurer(java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Map<java.lang.String,java.lang.Object> safeAttributes,
java.util.Map<java.lang.String,java.lang.Boolean> features,
java.util.Map<java.lang.String,java.lang.Boolean> safeFeatures) |
| Modifier and Type | Method and Description |
|---|---|
static TransformerFactoryConfigurer.Builder |
builder()
Creates a builder for TransformerFactoryConfigurers.
|
javax.xml.transform.TransformerFactory |
configure(javax.xml.transform.TransformerFactory factory)
Applies the current configuration.
|
private final java.util.Map<java.lang.String,java.lang.Object> attributes
private final java.util.Map<java.lang.String,java.lang.Object> safeAttributes
private final java.util.Map<java.lang.String,java.lang.Boolean> features
private final java.util.Map<java.lang.String,java.lang.Boolean> safeFeatures
public static final TransformerFactoryConfigurer Default
public static final TransformerFactoryConfigurer NoExternalAccess
private TransformerFactoryConfigurer(java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Map<java.lang.String,java.lang.Object> safeAttributes,
java.util.Map<java.lang.String,java.lang.Boolean> features,
java.util.Map<java.lang.String,java.lang.Boolean> safeFeatures)
public javax.xml.transform.TransformerFactory configure(javax.xml.transform.TransformerFactory factory)
ConfigurationException - if any of the attributes or
features set is not supported.public static TransformerFactoryConfigurer.Builder builder()