[
https://issues.apache.org/activemq/browse/CAMEL-1133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ashwin Karpe updated CAMEL-1133:
--------------------------------
Attachment: zip_compression_feature_patch.txt
ZipCompressionFeature.zip
Hi,
I have implemented this feature and attached a patch of the affected files
above. I have also attached a zip file containing the affected files for the
commiters to check-in.
I have added 4 unit test cases as well and verified that the functionality
works. Can someone please review this feature and commit accordingly.
Thanks and Regards,
Ashwin...
> Add an ability to compress/inflate messages using a zip marshaller
> ------------------------------------------------------------------
>
> Key: CAMEL-1133
> URL: https://issues.apache.org/activemq/browse/CAMEL-1133
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: Ashwin Karpe
> Attachments: zip_compression_feature_patch.txt,
> ZipCompressionFeature.zip
>
> Original Estimate: 3 days
> Remaining Estimate: 3 days
>
> At the moment there is no ability to compress and uncompress messages in a
> Message Exchange as they are sent/received on a Camel route.
> The benefits of having this feature are the following:
> a> ability to reduce the size of messages are they are sent in a flow to
> different remote destinations,
> b> ability to decompress messages just prior to being consumed at the
> endpoint.
> The way it would work is as follows:
> Message Deflater: (example below)
> --------------------------------------------------
> context.addRoutes(new RouteBuilder() {
> public void configure() {
>
> from("direct:start").marshal().zip(Deflater.BEST_COMPRESSION).process(new
> ZippedMessageProcessor());
> }
> });
> Message Inflater: (example below)
> ------------------------------------------------
> context.addRoutes(new RouteBuilder() {
> public void configure() {
>
> from("direct:start").marshal().zip().unmarshal().zip().process(new
> UnZippedMessageProcessor());
> }
> });
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.