Package org.ff4j.web.console
Class ImageProvider
java.lang.Object
org.ff4j.web.console.ImageProvider
Load image as base64 and store them in cache
- Author:
- Cedrick LUNVEN (@clunven)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImageToContext(org.thymeleaf.context.WebContext ctx, String imageName, ImageProvider.ImageType type) Public interface to add images to webcontext for rendering.static ImageProviderSingleton.
-
Method Details
-
getInstance
Singleton.- Returns:
- pattern singleton
-
addImageToContext
public void addImageToContext(org.thymeleaf.context.WebContext ctx, String imageName, ImageProvider.ImageType type) Public interface to add images to webcontext for rendering.- Parameters:
ctx- thymeleaf contextimageName- current image nametype- current image type
-