Class MCRThumbnailServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.iview2.frontend.MCRThumbnailServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class MCRThumbnailServlet extends MCRServlet
Author:
Thomas Scheffler (yagee)
See Also:
  • Constructor Details

    • MCRThumbnailServlet

      public MCRThumbnailServlet()
  • Method Details

    • init

      public void init() throws jakarta.servlet.ServletException
      Overrides:
      init in class MCRServlet
      Throws:
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Servlet
      Overrides:
      destroy in class jakarta.servlet.GenericServlet
    • getLastModified

      protected long getLastModified(jakarta.servlet.http.HttpServletRequest request)
      Description copied from class: MCRServlet
      allows browser to cache requests. This method is usefull as it allows browsers to cache content that is not changed. Please overwrite this method in every Servlet that depends on "remote" data.
      Overrides:
      getLastModified in class MCRServlet
    • render

      protected void render(MCRServletJob job, Exception ex) throws IOException, JDOMException
      Description copied from class: MCRServlet
      2nd phase of doGetPost This method has a seperate transaction and gets the same MCRServletJob from the first phase (think) and any exception that occurs at the first phase. By default this method calls doGetPost(MCRServletJob) as a fallback to the old behaviour.
      Overrides:
      render in class MCRServlet
      Parameters:
      job - same instance as of think(MCRServlet job)
      ex - any exception thrown by think(MCRServletJob) or transaction commit
      Throws:
      IOException
      JDOMException