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

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

public class URLImageLoader<P extends ParameterProvider<?>>
extends AbstractURLImageLoader<P>

Loads an image off an arbitrary URL. So, yes, this can load images off the internet, and yes, it could be painfully slow.

Version:
$Id$

Constructor Summary
URLImageLoader()
           
 
Method Summary
protected  URL getAndValidateUrl(P filterParams)
           
 String getUrl()
           
 void setUrl(String url)
           
 
Methods inherited from class info.magnolia.imaging.operations.load.AbstractURLImageLoader
loadSource
 
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

URLImageLoader

public URLImageLoader()
Method Detail

getAndValidateUrl

protected URL getAndValidateUrl(P filterParams)
                         throws ImagingException
Specified by:
getAndValidateUrl in class AbstractURLImageLoader<P extends ParameterProvider<?>>
Throws:
ImagingException - where the message should be the invalid URL.

getUrl

public String getUrl()

setUrl

public void setUrl(String url)


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