Class ResourceJspBean
java.lang.Object
fr.paris.lutece.plugins.document.web.ResourceJspBean
JSP Bean for document file resource management
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the content of the file resourceReturns the content type of the file resourcevoidloadResource(javax.servlet.http.HttpServletRequest request) Load a file resource corresponding to a file attribute of a document
-
Constructor Details
-
ResourceJspBean
public ResourceJspBean()
-
-
Method Details
-
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
Returns the content type of the file resource- Returns:
- The content type of the file resource
-