[
https://issues.apache.org/jira/browse/WSCOMMONS-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632674#action_12632674
]
Oleg Kalnichevski commented on WSCOMMONS-387:
---------------------------------------------
I am attaching for your consideration a patch that enhances Axiom capabilities
to parse and serialize MIME coded SOAP message with attachments.
There are three new packages
* org.apache.axiom.mime:
contains new MIME API. It is effectively an alternative to Javax Mail and
Activation. The API defines a fully streamable I/O model. All interfaces are
not coupled in any way with Apache mime4j. This is quite important as mime4j is
still not API stable.
* org.apache.axiom.mime.impl
contains an implementation of the new MIME API based on Apache mime4j 0.4
* org.apache.axiom.mime.content
contains content body implementations backed by a OMDocument, InputStream and
String. OMDocumentBody class can used to stream out an arbitrary OMDocument
model without buffering it memory (which I think the existing API is not
capable of).
You can see the new MIME parser / serializer in action by taking a look at the
test cases included in the patch.
I ran some basic performance benchmarks and found out that the mime4j parser
was about 15% slower than the existing impl. I am pretty confident, though, the
gap in performance will be closed in the coming releases of mime4j.
Please review and let me know if you are interested
Oleg
> MIME message parser and serializer based on Apache mime4j
> ---------------------------------------------------------
>
> Key: WSCOMMONS-387
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-387
> Project: WS-Commons
> Issue Type: Improvement
> Components: AXIOM
> Reporter: Oleg Kalnichevski
> Attachments: axiom-swa.patch
>
>
> MIME message parser and serializer based on Apache mime4j
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.