Class ConvertJpg

  • All Implemented Interfaces:, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class ConvertJpg
    extends javax.servlet.http.HttpServlet
    This servlet produces a set of JPGs from a document as a list of jpg files inside io.tmpdir/jpgprev/sid. If the export was already performed it simply return it. This servlet requires the following parameters:
    • docId
    • version
    Marco Meschieri - LogicalDOC
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      Constructor of the object.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void deleteJpgDir​(String sid, long docId)  
      void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      The doGet method of the servlet.
      void doPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      void onSessionClosed​(Object sid)  
      void onSessionCreated​( session)  
      • Methods inherited from class javax.servlet.http.HttpServlet

      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
    • Constructor Detail

      • ConvertJpg

        public ConvertJpg()
        Constructor of the object.
    • Method Detail

      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
        The doGet method of the servlet.
        This method is called when a form has its tag value method equals to get.
        request - the request send by the client to the server
        response - the response send by the server to the client
      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
      • onSessionCreated

        public void onSessionCreated​( session)
        Specified by:
        onSessionCreated in interface
      • deleteJpgDir

        public static void deleteJpgDir​(String sid,
                                        long docId)
      • onSessionClosed

        public void onSessionClosed​(Object sid)
        Specified by:
        onSessionClosed in interface