01: /*
02: * $Id: AbstractCompressionTransformer.java 10489 2008-01-23 17:53:38Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.transformer.compression;
12:
13: import org.mule.transformer.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:
22: public abstract class AbstractCompressionTransformer extends
23: AbstractTransformer {
24: private CompressionStrategy strategy;
25:
26: /**
27: * default constructor required for discovery
28: */
29: public AbstractCompressionTransformer() {
30: super ();
31: }
32:
33: public CompressionStrategy getStrategy() {
34: return strategy;
35: }
36:
37: public void setStrategy(CompressionStrategy strategy) {
38: this.strategy = strategy;
39: }
40:
41: }
|