Package org.mycore.mets.servlets
Class MCRMETSServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.mets.servlets.MCRMETSServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
- Author:
- Thomas Scheffler (yagee)
- See Also:
-
Field Summary
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
ATTR_MYCORE_SESSION, CURRENT_THREAD_NAME_KEY, INITIAL_SERVLET_NAME_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGetPost
(MCRServletJob job) This method should be overwritten by other servlets.protected long
getLastModified
(jakarta.servlet.http.HttpServletRequest request) allows browser to cache requests.static String
getOwnerID
(String pathInfo) void
init()
Methods inherited from class org.mycore.frontend.servlets.MCRServlet
allowCrossDomainRequests, buildRedirectURL, cleanupMCRSession, doGet, doGet, doPost, doPost, getErrorI18N, getLayoutService, getProperty, getReferer, getServletBaseURL, getSession, handleException, initializeMCRSession, render, reportException, think, toReferrer, toReferrer
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
STORE_METS_ON_GENERATE
public static final boolean STORE_METS_ON_GENERATE
-
-
Constructor Details
-
MCRMETSServlet
public MCRMETSServlet()
-
-
Method Details
-
doGetPost
Description copied from class:MCRServlet
This method should be overwritten by other servlets. As a default response we indicate the HTTP 1.1 status code 501 (Not Implemented).- Overrides:
doGetPost
in classMCRServlet
- Throws:
Exception
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
init
in classMCRServlet
- Throws:
jakarta.servlet.ServletException
-
getOwnerID
-
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 classMCRServlet
-