Class ResourceJspBean
- java.lang.Object
-
- fr.paris.lutece.plugins.document.web.ResourceJspBean
-
public class ResourceJspBean extends Object
JSP Bean for document file resource management
-
-
Constructor Summary
Constructors Constructor Description ResourceJspBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getContent()Returns the content of the file resourceStringgetContentType()Returns the content type of the file resourcevoidloadResource(javax.servlet.http.HttpServletRequest request)Load a file resource corresponding to a file attribute of a document
-
-
-
Method Detail
-
loadResource
public void loadResource(javax.servlet.http.HttpServletRequest request)
Load a file resource corresponding to a file attribute of a document- Parameters:
request- The HTTP request
-
getContent
public byte[] getContent()
Returns the content of the file resource- Returns:
- The content of the file resource
-
getContentType
public String getContentType()
Returns the content type of the file resource- Returns:
- The content type of the file resource
-
-