@Contract public interface FeatureSupplier
This supplier is used to set the features on the instances of the supported classes:
Method SummaryModifier and TypeMethodDescription
static FeatureSupplierSupply a feature that disables disallow-doctype-decl feature and allows the ENTITY in the xml DOCTYPE.The feature set to be applied.
booleanDefine whether the feature set is for the instances of the given class.
(Class<?> factoryClass)Define whether the feature set is for the instances of the given class.
factoryClass- the class for which instance the feature set is to be applied.
- true if this contract implementation is for the given class.
getFeaturesThe feature set to be applied.
- the feature set
Mapwith keys and
allowDoctypeDeclFeaturestatic 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
- A feature that sets
http://apache.org/xml/features/disallow-doctype-declfeature to false.