Package org.mycore.frontend.servlets
Class MCRStaticXMLFileServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.servlets.MCRStaticXMLFileServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
- Direct Known Subclasses:
MCRStaticXEditorFileServlet
This servlet displays static *.xml files stored in the web application by sending them to MCRLayoutService.
- Version:
- $Revision$ $Date$
- Author:
- Frank Lützenkirchen
- 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 TypeMethodDescriptionvoid
doGetPost
(MCRServletJob job) This method should be overwritten by other servlets.protected MCRContent
getResourceContent
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, URL resource) Methods inherited from class org.mycore.frontend.servlets.MCRServlet
allowCrossDomainRequests, buildRedirectURL, cleanupMCRSession, doGet, doGet, doPost, doPost, getErrorI18N, getLastModified, getLayoutService, getProperty, getReferer, getServletBaseURL, getSession, handleException, init, 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
-
-
Constructor Details
-
MCRStaticXMLFileServlet
public MCRStaticXMLFileServlet()
-
-
Method Details
-
doGetPost
public void doGetPost(MCRServletJob job) throws IOException, MCRException, SAXException, JDOMException, URISyntaxException, TransformerException 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:
IOException
MCRException
SAXException
JDOMException
URISyntaxException
TransformerException
-
getResourceContent
protected MCRContent getResourceContent(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, URL resource) throws IOException, JDOMException, SAXException - Throws:
IOException
JDOMException
SAXException
-