public class MediaManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Modifier and Type | Method and Description |
---|---|
static MediaManager |
getInstance()
Get the manager.
|
java.lang.String |
getMediaTemplatePath(java.lang.String templateName,
Data data)
Retrieve the path of the JSP suitable to display the specified Data.
|
java.lang.String |
getMediaTemplatePath(java.lang.String templateName,
java.lang.String mediaPath,
java.lang.String mediaContentType)
Retrieve the path of the JSP suitable to display the specified media.
|
public static final java.lang.String REVISION
public static MediaManager getInstance()
public java.lang.String getMediaTemplatePath(java.lang.String templateName, java.lang.String mediaPath, java.lang.String mediaContentType)
templateName
- the name of the template to retrievemediaPath
- the path of the media to display, relative to the webapp root (eg. upload/docs/myfile.ext) can also be an URL such as
https://www.youtube.com/watch?v=abc (if supported in template declarations)mediaContentType
- the content type of the media to display (eg. image/jpeg)public java.lang.String getMediaTemplatePath(java.lang.String templateName, Data data)
templateName
- the name of the template to retrievedata
- the Data to displayCopyright © 2001-2019 Jalios SA. All Rights Reserved.