KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > transformers > compression > AbstractCompressionTransformer


1 /*
2  * $Id: AbstractCompressionTransformer.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.transformers.compression;
12
13 import org.mule.transformers.AbstractTransformer;
14 import org.mule.util.compression.CompressionStrategy;
15
16 /**
17  * <code>AbstractCompressionTransformer</code> is a base class for all transformers
18  * that can compress or uncompress data when they performa message transformation.
19  * Compression is done via a pluggable strategy.
20  *
21  * @author Ross Mason
22  * @version $Revision: 3798 $
23  */

24
25 public abstract class AbstractCompressionTransformer extends AbstractTransformer
26 {
27     private CompressionStrategy strategy;
28
29     /**
30      * default constructor required for discovery
31      */

32     public AbstractCompressionTransformer()
33     {
34         super();
35     }
36
37     public CompressionStrategy getStrategy()
38     {
39         return strategy;
40     }
41
42     public void setStrategy(CompressionStrategy strategy)
43     {
44         this.strategy = strategy;
45     }
46
47 }
48
Popular Tags