Class ConvertJpg

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.logicaldoc.conversion.ConvertJpg
All Implemented Interfaces:
com.logicaldoc.core.security.SessionListener, jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class ConvertJpg extends jakarta.servlet.http.HttpServlet implements com.logicaldoc.core.security.SessionListener
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
Since:
8.3.1
Author:
Marco Meschieri - LogicalDOC
See Also:
  • Field Summary

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor of the object.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    deleteJpgDir(String sid, long docId)
     
    void
    doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    The doGet method of the servlet.
    void
    doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    void
     
    void
    onSessionCreated(com.logicaldoc.core.security.Session session)
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

    init, service

    Methods inherited from class jakarta.servlet.GenericServlet

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

    Methods inherited from class java.lang.Object

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

    • ConvertJpg

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

    • doGet

      public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.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.
      Parameters:
      request - the request send by the client to the server
      response - the response send by the server to the client
    • doPost

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

      public void onSessionCreated(com.logicaldoc.core.security.Session session)
      Specified by:
      onSessionCreated in interface com.logicaldoc.core.security.SessionListener
    • deleteJpgDir

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

      public void onSessionClosed(Object sid)
      Specified by:
      onSessionClosed in interface com.logicaldoc.core.security.SessionListener