@Controller(value="image") @RequestMapping(value="/image") public class ImageController extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
bgFill
Fill the window with the image
|
static int |
bgFit
Fit the image to the window
|
static int |
bgGrey
Plain grey background
|
static java.lang.String |
keyDefault |
static java.lang.String |
keyNone |
static java.lang.String |
keyTteoac |
Constructor and Description |
---|
ImageController()
Bean constructor - instantiated by Spring
|
Modifier and Type | Method and Description |
---|---|
void |
handleRequest(java.lang.String key,
javax.servlet.http.HttpServletRequest request,
java.io.OutputStream outputStream)
Fetch a background image.
|
java.lang.String |
handleRequest(java.lang.String key,
java.io.OutputStream outputStream)
Read an unfiltered background image from plex.
|
void |
setUseImageCache(boolean useImageCache) |
public static final int bgFit
public static final int bgFill
public static final int bgGrey
public static final java.lang.String keyDefault
public static final java.lang.String keyNone
public static final java.lang.String keyTteoac
public ImageController()
public void setUseImageCache(boolean useImageCache)
useImageCache
- the useImageCache to set@RequestMapping(value="/{key}") public void handleRequest(@PathVariable(value="key") java.lang.String key, javax.servlet.http.HttpServletRequest request, java.io.OutputStream outputStream)
key
- The base36 video keyrequest
- The request that contains the session that contains the userresponse
- Write the image/jpegpublic java.lang.String handleRequest(java.lang.String key, java.io.OutputStream outputStream)
key
- The bvlKeyoutputStream
-