Interface FeatureSupplier


@Contract public interface FeatureSupplier
This supplier is used to set the features on the instances of the supported classes:

using one of the methods:

Since:
2.31
  • Method Summary

    Modifier and Type
    Method
    Description
    Supply a feature that disables disallow-doctype-decl feature and allows the ENTITY in the xml DOCTYPE.
    The feature set to be applied.
    boolean
    isFor(Class<?> factoryClass)
    Define whether the feature set is for the instances of the given class.
  • Method Details

    • 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.