Package org.mycore.iview2.frontend
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 (seedoGet(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
-
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. UsesHttpServletRequest.getPathInfo()
(seegetTileInfo(String)
) to get tile attributes. Also usesMAX_AGE
to tell the client how long it could cache the information.- Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
getLastModified
protected long getLastModified(jakarta.servlet.http.HttpServletRequest req) Returns at which time the specified tile (seedoGet(HttpServletRequest, HttpServletResponse)
was last modified.- Overrides:
getLastModified
in classjakarta.servlet.http.HttpServlet
-