Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.8
-
None
-
None
Description
The XMLStreamReader extension defined by the IS_DATA_HANDLERS_AWARE, IS_BINARY and DATA_HANDLER properties (see OMConstants) currently only allows immediate loading of the DataHandler. This extension could be leveraged in a wider range of use cases if it also allowed deferred loading of the DataHandler: in this case the consumer of the XMLStreamReader would get a reference/link to the binary data but would fetch the DataHandler only when required (as Axiom does when processing an MTOM/XOP message).
This improvement could be implemented by defining a set of additional properties, but a purely property based solution is not very usable, difficult to document and also not very efficient. The proposal is therefore to define an extension interface (with methods isBinary(), isDeferred(), getDataHandler(), etc.) as well as a single property that allows the consumer of the XMLStreamReader to query that extension interface. Of course care would be taken to maintain compatibility with the existing DataHandler extension.
Attachments
Issue Links
- blocks
-
AXIOM-255 The sequence of events produced by OMStAXWrapper for XOP:Include is inconsistent
- Closed