DataHandler extension should support deferred loading/parsing
-------------------------------------------------------------
Key: WSCOMMONS-487
URL: https://issues.apache.org/jira/browse/WSCOMMONS-487
Project: WS-Commons
Issue Type: Improvement
Components: AXIOM
Affects Versions: Axiom 1.2.8
Reporter: Andreas Veithen
Assignee: Andreas Veithen
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.