public class SetPropertyAllowingMappedXMLInputFactory extends MappedXMLInputFactory
MappedXMLInputFactory allowing setProperty(arg0, arg1) doing nothing, extended to fix setProperty() required by XML External Entity attack mitigation required by Findbugs in
createStreamReader(), and required for compatibility with JSONProvider. AbstractXMLInputFactory.setProperty(String, Object) would return IllegalArgumentException.ALLOCATOR, IS_COALESCING, IS_NAMESPACE_AWARE, IS_REPLACING_ENTITY_REFERENCES, IS_SUPPORTING_EXTERNAL_ENTITIES, IS_VALIDATING, REPORTER, RESOLVER, SUPPORT_DTD| Constructor and Description |
|---|
SetPropertyAllowingMappedXMLInputFactory(Configuration config)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
setProperty(String arg0,
Object arg1) |
createJSONObject, createXMLStreamReadercreateFilteredReader, createFilteredReader, createNewJSONTokener, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, getEventAllocator, getProperty, getXMLReporter, getXMLResolver, isPropertySupported, setEventAllocator, setXMLReporter, setXMLResolvernewFactory, newFactory, newInstance, newInstancepublic SetPropertyAllowingMappedXMLInputFactory(Configuration config)
config - configurationCopyright © 2012–2020. All rights reserved.