You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2009/07/07 22:28:15 UTC

[jira] Resolved: (WSCOMMONS-487) DataHandler extension should support deferred loading/parsing

     [ https://issues.apache.org/jira/browse/WSCOMMONS-487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved WSCOMMONS-487.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: Axiom 1.2.9

Implemented in r791968. See commit comment and Javadoc for more details.

> 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
>             Fix For: Axiom 1.2.9
>
>
> 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.