Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-335

DataHandler extension should support deferred loading/parsing

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.8
    • 1.2.9
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            veithen Andreas Veithen
            veithen Andreas Veithen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment