[ 
https://issues.apache.org/jira/browse/AXIOM-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167078#comment-13167078
 ] 

Hudson commented on AXIOM-403:
------------------------------

Integrated in ws-axiom-trunk #749 (See 
[https://builds.apache.org/job/ws-axiom-trunk/749/])
    AXIOM-403: Make sure that the content of the root part of an XOP/MTOM 
message is only buffered (read into memory) if necessary.

veithen : 
Files : 
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/PartImpl.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMXMLBuilderFactory.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/OMTestSuiteBuilder.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/builder/TestRootPartStreaming.java

                
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to