magoffin.matt.ma2.image.jmagick
Class BaseJMagickMediaEffect

java.lang.Object
  extended by magoffin.matt.ma2.image.jmagick.BaseJMagickMediaEffect
All Implemented Interfaces:
JMagickMediaEffect, MediaEffect
Direct Known Subclasses:
BumpMapEffect, RotateEffect, ScaleEffect

public abstract class BaseJMagickMediaEffect
extends java.lang.Object
implements JMagickMediaEffect

Base implementation of JMagickMediaEffect.

The configurable properties of this class are:

mediaBiz
The MediaBiz implementation to use.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Field Summary
protected  org.apache.log4j.Logger log
          A class logger.
 
Fields inherited from interface magoffin.matt.ma2.image.jmagick.JMagickMediaEffect
INPUT_IMAGE_INFO_KEY, INPUT_MAGICK_IMAGE_KEY, OUTPUT_MAGICK_IMAGE_KEY
 
Fields inherited from interface magoffin.matt.ma2.MediaEffect
KEY_ROTATE, KEY_SCALE, KEY_WATERMARK, MEDIA_REQUEST_PARAM_ROTATE_DEGREES, MEDIA_REQUEST_PARAM_WATERMARK_RESOURCE
 
Constructor Summary
BaseJMagickMediaEffect()
           
 
Method Summary
 void apply(MediaItem item, MediaRequest request, MediaResponse response)
          Apply the effect.
 MediaBiz getMediaBiz()
           
 void setMediaBiz(MediaBiz mediaBiz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface magoffin.matt.ma2.image.jmagick.JMagickMediaEffect
applyEffect
 
Methods inherited from interface magoffin.matt.ma2.MediaEffect
getKey
 

Field Detail

log

protected final org.apache.log4j.Logger log
A class logger.

Constructor Detail

BaseJMagickMediaEffect

public BaseJMagickMediaEffect()
Method Detail

apply

public void apply(MediaItem item,
                  MediaRequest request,
                  MediaResponse response)
Description copied from interface: MediaEffect
Apply the effect.

MediaHandler and MediaEffect implementations can utilize the MediaRequest.getParameters() map to keep track of request processing state during processing. Different implementations of MediaHandler will support different implementations of MediaEffects.

Specified by:
apply in interface MediaEffect
Parameters:
item - the item being processed
request - the current request
response - the current response

getMediaBiz

public MediaBiz getMediaBiz()
Returns:
Returns the mediaBiz.

setMediaBiz

public void setMediaBiz(MediaBiz mediaBiz)
Parameters:
mediaBiz - The mediaBiz to set.