Class TransformerFactoryConfigurer


  • public class TransformerFactoryConfigurer
    extends java.lang.Object
    Configures TransformerFactories.
    Since:
    XMLUnit 2.6.0
    • Field Summary

      Fields 
      Modifier and Type Field 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  
    • Constructor Summary

      Constructors 
      Modifier Constructor 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)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static TransformerFactoryConfigurer.Builder builder()
      Creates a builder for TransformerFactoryConfigurers.
      javax.xml.transform.TransformerFactory configure​(javax.xml.transform.TransformerFactory factory)
      Applies the current configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • attributes

        private final java.util.Map<java.lang.String,​java.lang.Object> attributes
      • safeAttributes

        private final java.util.Map<java.lang.String,​java.lang.Object> safeAttributes
      • features

        private final java.util.Map<java.lang.String,​java.lang.Boolean> features
      • safeFeatures

        private final java.util.Map<java.lang.String,​java.lang.Boolean> safeFeatures
      • Default

        public static final TransformerFactoryConfigurer Default
        The default instance which disables DTD loading but still allows loading of external stylesheets.
      • NoExternalAccess

        public static final TransformerFactoryConfigurer NoExternalAccess
        The instance which disables DTD loading as well as loading of external stylesheets.
    • Constructor Detail

      • TransformerFactoryConfigurer

        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)
    • Method Detail

      • configure

        public javax.xml.transform.TransformerFactory configure​(javax.xml.transform.TransformerFactory factory)
        Applies the current configuration.
        Throws:
        ConfigurationException - if any of the attributes or features set is not supported.