[SWS-650] AxiomSoapMessageFactory does not provide way to set properties on XMLInputFactory Created: 02/Nov/10  Updated: 04/May/12  Resolved: 03/Nov/10

Status: Closed
Project: Spring Web Services
Component/s: None
Affects Version/s: 1.5.9
Fix Version/s: 2.0 RC1

Type: Improvement Priority: Minor
Reporter: Matt Magoffin Assignee: Arjen Poutsma
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.05h
Original Estimate: Not Specified


 Description   

The AxiomSoapMessageFactory class instantiates an internally-only accessible XMLInputFactory in its constructor like this:

inputFactory = XMLInputFactory.newInstance();

I would like to be able to turn text coalescing off to be able to handle very large text element content (i.e. base-64 encoded binary data) but without turning off coalescing the JVM will quickly run out of memory.

A way to configure the XMLInputFactory properties, for example to be able to specify a Map<String, Object> configurable property to pass to

inputFactory.setProperty(key, value);

There are many useful properties that can be configured:

http://woodstox.codehaus.org/javadoc/stax-api/1.0/javax/xml/stream/XMLInputFactory.html



 Comments   
Comment by Arjen Poutsma [ 03/Nov/10 ]

I've added a createXmlInputFactory() method, which you can override in a subclass to customize the XMLInputFactory.

Comment by Matt Magoffin [ 03/Nov/10 ]

Thanks, Arjen, but I wonder why we need to subclass just to configure these properties? I think having a createXMLInputFactory() method is useful, of course, but to make it easier to use without needing to subclass could we have a configurable Map<String, Object> property that this class can use?

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Fri Dec 15 12:16:42 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.