public class ImageScalerFactory
extends java.lang.Object
Constructor and Description |
---|
ImageScalerFactory() |
Modifier and Type | Method and Description |
---|---|
static de.innovationgate.utils.ImageScaler |
createImageScaler(WGACore core)
Creates a format-neutral image scaler.
|
static de.innovationgate.utils.MimeTypeSpecificImageScaler |
createMimeTypeSpecificImageScaler(WGACore core,
java.lang.String mimeType)
Creates an image scaler specifically for the given mime type.
|
public static de.innovationgate.utils.ImageScaler createImageScaler(WGACore core) throws de.innovationgate.webgate.api.WGException
ImageScaler
interface.core
- The WGA Corede.innovationgate.webgate.api.WGException
public static de.innovationgate.utils.MimeTypeSpecificImageScaler createMimeTypeSpecificImageScaler(WGACore core, java.lang.String mimeType) throws de.innovationgate.webgate.api.WGException, de.innovationgate.wga.modules.ModuleInstantiationException
MimeTypeSpecificImageScalerFactory
(while preferring the one that is configured as default on server configuration), trying to find a factory able to serve a scaler for the given type.
Returns null if none if found.core
- The WGA coremimeType
- The mime typede.innovationgate.webgate.api.WGException
de.innovationgate.wga.modules.ModuleInstantiationException