Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-403

Avoid buffering the root part of an XOP/MTOM message unless necessary

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.12
    • 1.2.13
    • API
    • None

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

      Attachments

        Activity

          People

            veithen Andreas Veithen
            veithen Andreas Veithen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: