Package org.mycore.frontend.xeditor
Class MCRStaticXEditorFileServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.servlets.MCRStaticXMLFileServlet
org.mycore.frontend.xeditor.MCRStaticXEditorFileServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
- Author:
- Frank Lützenkirchen
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionXML document types that may contain editor formsprotected static final Logger
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 TypeMethodDescriptionstatic MCRContent
doExpandEditorElements
(MCRContent content, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String sessionID, String pageURL) protected MCRContent
getResourceContent
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, URL resource) For defined document types like static webpages, replace editor elements with complete editor definitionvoid
init()
protected boolean
mayContainEditorForm
(MCRContent content) Methods inherited from class org.mycore.frontend.servlets.MCRStaticXMLFileServlet
doGetPost
Methods inherited from class org.mycore.frontend.servlets.MCRServlet
allowCrossDomainRequests, buildRedirectURL, cleanupMCRSession, doGet, doGet, doPost, doPost, getErrorI18N, getLastModified, 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
-
LOGGER
-
docTypesIncludingEditors
XML document types that may contain editor forms
-
-
Constructor Details
-
MCRStaticXEditorFileServlet
public MCRStaticXEditorFileServlet()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
init
in classMCRServlet
- Throws:
jakarta.servlet.ServletException
-
mayContainEditorForm
- Throws:
IOException
-
getResourceContent
protected MCRContent getResourceContent(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, URL resource) throws IOException, JDOMException, SAXException For defined document types like static webpages, replace editor elements with complete editor definition- Overrides:
getResourceContent
in classMCRStaticXMLFileServlet
- Throws:
IOException
JDOMException
SAXException
-
doExpandEditorElements
public static MCRContent doExpandEditorElements(MCRContent content, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String sessionID, String pageURL) throws IOException, JDOMException, SAXException - Throws:
IOException
JDOMException
SAXException
-