public class ImageRemapperUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static ImageRemapper |
currentImageRemapper |
private static boolean |
newMapperIsNeeded |
private static ServletContext |
servletContext |
Constructor and Description |
---|
ImageRemapperUtil() |
Modifier and Type | Method and Description |
---|---|
static ImageRemapper |
getCurrentMapper()
Get the current image remapper.
|
static ImageRemapper |
getNewImageRemapperIfNeeded(ServletContext context)
Get a new image remapper if it is needed, otherwise null.
|
static void |
init(ServletContext context)
Initialized at server startup.
|
static void |
remapAllTo(ImageRemapper mapper,
String url)
Scan the given url for images (png and gif) and remap them.
|
static void |
setCurrentMapper(ImageRemapper remapper)
Changes the current image remapper.
|
private static ServletContext servletContext
private static ImageRemapper currentImageRemapper
private static transient boolean newMapperIsNeeded
public static void init(ServletContext context)
public static ImageRemapper getNewImageRemapperIfNeeded(ServletContext context)
setCurrentMapper(ImageRemapper)
to change the current image remapper.public static ImageRemapper getCurrentMapper()
public static void setCurrentMapper(ImageRemapper remapper)
public static void remapAllTo(ImageRemapper mapper, String url)