fr.paris.lutece.plugins.document.web
Class ResourceJspBean

java.lang.Object
  extended by fr.paris.lutece.plugins.document.web.ResourceJspBean

public class ResourceJspBean
extends java.lang.Object

JSP Bean for document file resource management


Constructor Summary
ResourceJspBean()
           
 
Method Summary
 byte[] getContent()
          Returns the content of the file resource
 java.lang.String getContentType()
          Returns the content type of the file resource
 void loadResource(javax.servlet.http.HttpServletRequest request)
          Load a file resource corresponding to a file attribute of a document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceJspBean

public ResourceJspBean()
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 java.lang.String getContentType()
Returns the content type of the file resource

Returns:
The content type of the file resource


Copyright © 2009 Mairie de Paris. All Rights Reserved.