info.magnolia.imaging.operations.load
Class AbstractURLImageLoader<P extends ParameterProvider<?>>

java.lang.Object
  extended by info.magnolia.imaging.operations.load.AbstractLoader<P>
      extended by info.magnolia.imaging.operations.load.AbstractURLImageLoader<P>
Type Parameters:
P - type of ParameterProvider
All Implemented Interfaces:
ImageOperation<P>
Direct Known Subclasses:
ClasspathImageLoader, URLImageLoader

public abstract class AbstractURLImageLoader<P extends ParameterProvider<?>>
extends AbstractLoader<P>

Loads images from a URL.

Version:
$Id$

Constructor Summary
protected AbstractURLImageLoader()
           
protected AbstractURLImageLoader(Color backgroundColor)
           
 
Method Summary
protected abstract  URL getAndValidateUrl(P filterParams)
           
protected  BufferedImage loadSource(P filterParams)
           
 
Methods inherited from class info.magnolia.imaging.operations.load.AbstractLoader
apply, doReadAndClose, getBackgroundColor, getImageDecoder, setBackgroundColor, setImageDecoder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractURLImageLoader

protected AbstractURLImageLoader()

AbstractURLImageLoader

protected AbstractURLImageLoader(Color backgroundColor)
Method Detail

loadSource

protected BufferedImage loadSource(P filterParams)
                            throws ImagingException
Specified by:
loadSource in class AbstractLoader<P extends ParameterProvider<?>>
Throws:
ImagingException

getAndValidateUrl

protected abstract URL getAndValidateUrl(P filterParams)
                                  throws ImagingException
Throws:
ImagingException - where the message should be the invalid URL.


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.