Avoid buffering the root part of an XOP/MTOM message unless necessary
---------------------------------------------------------------------
Key: AXIOM-403
URL: https://issues.apache.org/jira/browse/AXIOM-403
Project: Axiom
Issue Type: Improvement
Components: API
Reporter: Andreas Veithen
Priority: Minor
Currently, the root part of an XOP/MTOM message is always buffered in memory.
However, in many cases, the entire root part is processed before any of the
attachment parts are accessed. Therefore the root part should only be buffered
if necessary, i.e. when an attachment part is accessed before the entire root
part has been consumed. One way to achieve this is to use a
DetachableInputStream. Note that DetachableInputStream always buffers the
content in memory (and never on disk), but this already the case for the root
part (see the code in PartContentFactory).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]