/** * Create an {@link XMLInputFactory} with Spring's defensive setup, * i.e. no support for the resolution of DTDs and external entities. * @return a new defensively initialized input factory instance to use * @since 5.0 */ public static XMLInputFactory createDefensiveInputFactory() { return createDefensiveInputFactory(XMLInputFactory::newInstance); }
/** * Create an {@code XMLInputFactory} that this converter will use to create * {@link javax.xml.stream.XMLStreamReader} and {@link javax.xml.stream.XMLEventReader} * objects. * <p>Can be overridden in subclasses, adding further initialization of the factory. * The resulting factory is cached, so this method will only be called once. * @see StaxUtils#createDefensiveInputFactory() */ protected XMLInputFactory createXmlInputFactory() { return StaxUtils.createDefensiveInputFactory(); }
/** * Create an {@link XMLInputFactory} with Spring's defensive setup, * i.e. no support for the resolution of DTDs and external entities. * @return a new defensively initialized input factory instance to use * @since 5.0 */ public static XMLInputFactory createDefensiveInputFactory() { return createDefensiveInputFactory(XMLInputFactory::newFactory); }
/** * Create an {@code XMLInputFactory} that this converter will use to create * {@link javax.xml.stream.XMLStreamReader} and {@link javax.xml.stream.XMLEventReader} * objects. * <p>Can be overridden in subclasses, adding further initialization of the factory. * The resulting factory is cached, so this method will only be called once. * @see StaxUtils#createDefensiveInputFactory() */ protected XMLInputFactory createXmlInputFactory() { return StaxUtils.createDefensiveInputFactory(); }
public ObjectMapper create() { return new XmlMapper(StaxUtils.createDefensiveInputFactory()); }
public ObjectMapper create() { return new XmlMapper(StaxUtils.createDefensiveInputFactory()); }
public ObjectMapper create(boolean defaultUseWrapper) { JacksonXmlModule module = new JacksonXmlModule(); module.setDefaultUseWrapper(defaultUseWrapper); return new XmlMapper(new XmlFactory(StaxUtils.createDefensiveInputFactory()), module); } }
public ObjectMapper create(boolean defaultUseWrapper) { JacksonXmlModule module = new JacksonXmlModule(); module.setDefaultUseWrapper(defaultUseWrapper); return new XmlMapper(new XmlFactory(StaxUtils.createDefensiveInputFactory()), module); } }
/** * Create an {@code XMLInputFactory} that this converter will use to create * {@link javax.xml.stream.XMLStreamReader} and {@link javax.xml.stream.XMLEventReader} * objects. * <p>Can be overridden in subclasses, adding further initialization of the factory. * The resulting factory is cached, so this method will only be called once. * @see StaxUtils#createDefensiveInputFactory() */ protected XMLInputFactory createXmlInputFactory() { return StaxUtils.createDefensiveInputFactory(); }
/** * Create an {@code XMLInputFactory} that this converter will use to create * {@link javax.xml.stream.XMLStreamReader} and {@link javax.xml.stream.XMLEventReader} * objects. * <p>Can be overridden in subclasses, adding further initialization of the factory. * The resulting factory is cached, so this method will only be called once. * @see StaxUtils#createDefensiveInputFactory() */ protected XMLInputFactory createXmlInputFactory() { return StaxUtils.createDefensiveInputFactory(); }
public ObjectMapper create() { return new XmlMapper(StaxUtils.createDefensiveInputFactory()); }
public ObjectMapper create(boolean defaultUseWrapper) { JacksonXmlModule module = new JacksonXmlModule(); module.setDefaultUseWrapper(defaultUseWrapper); return new XmlMapper(new XmlFactory(StaxUtils.createDefensiveInputFactory()), module); } }