Interface FeatureSupplier

    • Method Detail

      • isFor

        boolean isFor​(Class<?> factoryClass)
        Define whether the feature set is for the instances of the given class.
        Parameters:
        factoryClass - the class for which instance the feature set is to be applied.
        Returns:
        true if this contract implementation is for the given class.
      • getFeatures

        Map<String,​Boolean> getFeatures()
        The feature set to be applied.
        Returns:
        the feature set Map with keys and Boolean values.
      • allowDoctypeDeclFeature

        static FeatureSupplier allowDoctypeDeclFeature()
        Supply a feature that disables disallow-doctype-decl feature and allows the ENTITY in the xml DOCTYPE. Registering this feature will override the settings of the secure SAXParserFactory.
        Returns:
        A feature that sets http://apache.org/xml/features/disallow-doctype-decl feature to false.