Package org.mycore.frontend.servlets
Class MCRConfigHelperServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRConfigHelperServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class MCRConfigHelperServlet
extends jakarta.servlet.http.HttpServlet
Servlet to map the properties defined in the init param "Properties" to a JSON object with the property name as key
and the property value as value. The properties in the init param need to be comma separated and can end with * to
match all properties which start with the string before *.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected long
getLastModified
(jakarta.servlet.http.HttpServletRequest request) void
init()
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, log, log
-
Field Details
-
PROPERTIES_INIT_PARAM
- See Also:
-
-
Constructor Details
-
MCRConfigHelperServlet
public MCRConfigHelperServlet()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
init
in classjakarta.servlet.GenericServlet
- Throws:
jakarta.servlet.ServletException
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
getLastModified
protected long getLastModified(jakarta.servlet.http.HttpServletRequest request) - Overrides:
getLastModified
in classjakarta.servlet.http.HttpServlet
-