Package org.glassfish.jersey.jaxb
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
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static FeatureSupplierallowDoctypeDeclFeature()Supply a feature that disables disallow-doctype-decl feature and allows the ENTITY in the xml DOCTYPE.Map<String,Boolean>getFeatures()The feature set to be applied.booleanisFor(Class<?> factoryClass)Define whether the feature set is for the instances of the given class.
-
-
-
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
Mapwith keys andBooleanvalues.
-
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 secureSAXParserFactory.- Returns:
- A feature that sets
http://apache.org/xml/features/disallow-doctype-declfeature to false.
-
-