ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AXIOM-403) Avoid buffering the root part of an XOP/MTOM message unless necessary
Date Sun, 11 Dec 2011 10:14:40 GMT

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

Andreas Veithen updated AXIOM-403:
----------------------------------

      Description: 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 is already the case for the root part (see the code
in PartContentFactory).  (was: 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).)
    Fix Version/s: 1.2.13
    
> 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
>             Fix For: 1.2.13
>
>
> 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 is 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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


Mime
View raw message