Class DocumentResourceServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
fr.paris.lutece.plugins.document.web.DocumentResourceServlet
All Implemented Interfaces:
DocumentEventListener, Serializable, EventListener, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DocumentResourceServlet extends javax.servlet.http.HttpServlet implements DocumentEventListener
Servlet serving document file resources
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    getLastModified(javax.servlet.http.HttpServletRequest request)
    Processes request HTTP GET if-modified-since methods
    Returns a short description of the servlet.
    void
    Process a document event
    static void
    putInCache(int nDocumentId, int nAttributeId)
    Put the file in cache

    Methods inherited from class javax.servlet.http.HttpServlet

    service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DocumentResourceServlet

      public DocumentResourceServlet()
  • Method Details

    • getLastModified

      public long getLastModified(javax.servlet.http.HttpServletRequest request)
      Processes request HTTP GET if-modified-since methods
      Parameters:
      request - The HTTP request
      Returns:
      document last modified date
    • putInCache

      public static void putInCache(int nDocumentId, int nAttributeId)
      Put the file in cache
      Parameters:
      nDocumentId - The document id
      nAttributeId - The attribut id
    • getServletInfo

      public String getServletInfo()
      Returns a short description of the servlet.
      Specified by:
      getServletInfo in interface javax.servlet.Servlet
      Overrides:
      getServletInfo in class javax.servlet.GenericServlet
      Returns:
      message
    • processDocumentEvent

      public void processDocumentEvent(DocumentEvent event) throws DocumentException
      Process a document event
      Specified by:
      processDocumentEvent in interface DocumentEventListener
      Parameters:
      event - The event to process
      Throws:
      DocumentException - raise when error occurs in event or rule