Class DocumentResourceServlet

  • All Implemented Interfaces:
    DocumentEventListener, java.io.Serializable, java.util.EventListener, javax.servlet.Servlet, javax.servlet.ServletConfig

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getLastModified​(javax.servlet.http.HttpServletRequest request)
      Processes request HTTP GET if-modified-since methods
      java.lang.String getServletInfo()
      Returns a short description of the servlet.
      void processDocumentEvent​(DocumentEvent event)
      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 Detail

      • DocumentResourceServlet

        public DocumentResourceServlet()
    • Method Detail

      • 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 java.lang.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