Class MCRTileServlet

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

public class MCRTileServlet extends jakarta.servlet.http.HttpServlet
Get a specific tile of an image.
Author:
Thomas Scheffler (yagee)
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
    Extracts tile or image properties from iview2 file and transmits it.
    protected long
    getLastModified(jakarta.servlet.http.HttpServletRequest req)
    Returns at which time the specified tile (see doGet(HttpServletRequest, HttpServletResponse) was last modified.

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

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

    Methods inherited from class java.lang.Object

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

    • MCRTileServlet

      public MCRTileServlet()
  • Method Details

    • doGet

      protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Extracts tile or image properties from iview2 file and transmits it. Uses HttpServletRequest.getPathInfo() (see getTileInfo(String)) to get tile attributes. Also uses MAX_AGE to tell the client how long it could cache the information.
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • getLastModified

      protected long getLastModified(jakarta.servlet.http.HttpServletRequest req)
      Returns at which time the specified tile (see doGet(HttpServletRequest, HttpServletResponse) was last modified.
      Overrides:
      getLastModified in class jakarta.servlet.http.HttpServlet