ws-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] Resolved: (WSCOMMONS-487) DataHandler extension should support deferred loading/parsing
Date Tue, 07 Jul 2009 20:28:15 GMT


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:
>             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.

View raw message